Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
Learning AngularJS Magic: Expressions
(opens in new tab)
(pathgather.com)
10 points
nsamuell
11y ago
4 comments
Save
Share
4 comments
4 comments · 2 top-level
top
newest
oldest
didgeoridoo
11y ago
· 2 in thread
I hope someone does a series on "forgetting AngularJS magic" when 2.0 comes out and changes everything...
nsamuell
OP
11y ago
The more it uses web standards (e.g. Object.observe), the less magic will be required (e.g. $watch), so I think you're right :)
krebby
11y ago
The only reason Object.observe is a standard is because the angular guys pushed it through. It's generally agreed to be a wart of the new spec [0].
[0]
https://twitter.com/floydophone/status/469214241732714497
szimmer1
11y ago
Or just write function increasePoints() { ++($scope.points) }
Function errything!
j
/
k
navigate · click thread line to collapse