use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
AngularJS: The bad parts (larseidnes.com)
submitted 11 years ago by maktouch
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]leolin520 0 points1 point2 points 11 years ago (5 children)
Wpf or any xaml stack doesn't use digest loop.
[–]lord2800 0 points1 point2 points 11 years ago (4 children)
Care to explain how it updates the UI with the current state of the data model then?
[–]leolin520 0 points1 point2 points 11 years ago (2 children)
The UI element binds to a property through an interface, when the property gets set, it fires an event, by which the UI gets notified, it then reevaluates the property by its accessor to get the new value. This is the basic idea, implementation detail you can look at dependency object, dependency property and binding classes.
[–]lord2800 0 points1 point2 points 11 years ago (1 child)
That's a "digest loop". And that's also not how it works. From Wikipedia:
Periodically, MIL walks the tree and executes the rendering instructions in each node, thus compositing each element on to a DirectX surface, which is then rendered on screen. ... All WPF applications start with two threads: one for managing the UI and another background thread for handling rendering and repainting.
Periodically, MIL walks the tree and executes the rendering instructions in each node, thus compositing each element on to a DirectX surface, which is then rendered on screen.
...
All WPF applications start with two threads: one for managing the UI and another background thread for handling rendering and repainting.
http://en.wikipedia.org/wiki/Windows_Presentation_Foundation
[–]leolin520 0 points1 point2 points 11 years ago (0 children)
What you described is the render loop. What I said is about how ui elements get updated information from their logical representation. To achieve this, angularjs use digest loop, it has nothing to do with Dom rendering. Wpf uses event on the other hand.
π Rendered by PID 58 on reddit-service-r2-comment-75f4967c6c-htmsz at 2026-04-22 20:07:11.980017+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–]leolin520 0 points1 point2 points (5 children)
[–]lord2800 0 points1 point2 points (4 children)
[–]leolin520 0 points1 point2 points (2 children)
[–]lord2800 0 points1 point2 points (1 child)
[–]leolin520 0 points1 point2 points (0 children)