Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Learning AngularJS Magic: Expressions (pathgather.com)
10 points by nsamuell on Dec 7, 2014 | hide | past | favorite | 4 comments


Or just write function increasePoints() { ++($scope.points) }

Function errything!


I hope someone does a series on "forgetting AngularJS magic" when 2.0 comes out and changes everything...


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 :)


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




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: