4 ms·
a lot of people put html strings into directives so it has nothing to do with angular. Furthermore , in angular the HTML looks like a template, not just html ,w
by camus2 12y ago
a lot of people put html strings into directives so it has nothing to do with angular. Furthermore , in angular the HTML looks like a template, not just html ,with expressions , ng- everywhere ...
I dont care about this but let's just not pretend Angular solves the HTML template in code issue . It's far from inobstrusive.
- zoomerang 12y agoYou can cheat in any framework. The difference is that angular strongly encourages you towards one design, whereas React.js does not. (Directives are also not part of your normal daily workflow. Many projects wouldn't even use them). Yes, angular templates are templates, not pure HTML. That's the idea. I'm not sure what your point is there.
- mikewhy 12y ago> I cannot stand codebases that mix code and markup together. In Angular people can write app.directive('myDirective', function () { template: "<strong>oh no</strong>" }); which is what I think they were getting at.
- zoomerang 12y agoSure, but that's not idiomatic Angular. I'd wager the majority of Angular projects don't even use custom directives.
- camus2 12y agoin React templates are not pure html either,I dont get your point.