Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I call it tangled as it's mixing two flavors in one "view", whether you like it or not: JS and HTML.

Doesn't Angular mix HTML and JS too, except in the HTML file?



> Doesn't Angular mix HTML and JS too, except in the HTML file?

Angular2 doesn't. Like React it uses a HTML-like templating syntax to generate views. Nothing is mixed in Angular2, everything is defined in JS and rendered as HTML.


Yeah. The only difference is that React lends itself to arbitrary JS, while Angular is more limited.




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

Search: