4 ms·
> I cannot stand codebases that mix code and markup together. In Angular people can write app.directive('myDirective', function () { template: "<str
by 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.