3 ms·
You 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
by zoomerang 12y ago
You 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.