Answer the question
In order to leave comments, you need to log in
Why and how to use directives in AngularJS?
I am currently studying Angular and, frankly, I don’t understand what directives are for and where to apply them. In my current understanding, this is just a piece of code and a template, but then why not use, for example, ng-inject and work in it using a controller. In general, tell me please, experienced people, where and how and in what form it is correct and reasonable to apply directives? It will be doubly useful if you also include links to examples.
Answer the question
In order to leave comments, you need to log in
what are directives for?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question