Hacker News new | ask | show | jobs
by treeface 4617 days ago
In practice, compartmentalizing sections of a page into declarative chunks of JS and HTML actually helps keep things really organized. When each link in a nested directive chain is completely independent of one another, it makes refactoring a problematic area much simpler. And of course all of this makes unit and functional testing much simpler.
1 comments

Angular's declarative approach makes it easier to separate angular out if you choose to switch frameworks for whatever reason.

Personally, I've found backbone pretty disgusting, although perhaps better than vanilla js/jquery.