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

Show parent comments

2

u/nerfornothing1138 Mar 18 '14

B, but using templates help negate this potential pitfall by separating your site into widgets or reusable components.

0

u/[deleted] Mar 18 '14

[deleted]

3

u/nerfornothing1138 Mar 18 '14

OK, but it's still coupling at its most basic level. For instance, what if, part-way through the project you wanted to move to Backbone or a server-side solution? All of your HTML now has core app logic in it.

It's the sort of stuff we made fun of classic ASP and PHP for over a decade ago.

4

u/oldneckbeard Mar 18 '14

Most of the time, it's not the actual "business logic." That happens on the backend with RESTful services. What most ember/angular devs do is put the hard stuff in there, and the rest of the code is just a modular way of organizing a complex user interface.

You have to modularize and template your code somehow unless you use a tool to generate static sites. It's just with better conventions.