Hacker News new | ask | show | jobs
by poof131 4063 days ago
Personally, I prefer HTML too. That’s the reason I enjoy Angular so much. It essentially allows you to use an enhanced version of HTML, so you keep the strengths of a DSL without the limitations of basic HTML.

But in pure HTML, how do you do something like ng-repeat?[1] You can’t. You have to either use a template language or you have to construct the HTML in the code. Both have goods and others. A template language allows you to keep an HTML like format that non-programmer’s can possibly understand and contribute to, and that can help separate the view from the business logic, but it comes at the cost of having to learn a new language / framework and the hurdles that abstractions sometimes create.

Similar question on Quora. [2]

[1] https://docs.angularjs.org/api/ng/directive/ngRepeat [2] http://www.quora.com/What-are-the-pros-and-cons-of-using-a-t...