r/programming • • Mar 18 '14

AngularJS 2.0

http://blog.angularjs.org/2014/03/angular-20.html
213 Upvotes

71 comments sorted by

View all comments

5

u/nerfornothing1138 Mar 18 '14

Anyone else not a fan of implementing logic into attributes of HTML elements?

2

u/x-skeww Mar 18 '14

You have to spot-weld those parts at some point. Doing it via classes doesn't really change anything.

The advantage of doing it declaratively is that there is no DOM transversal (which can be very brittle) and you also won't need any markup for testing.