What are angular directives?

Sharad Jaiswal
Sharad Jaiswal

Posted On: Feb 22, 2018

 

Angular directives are the attributes which are decorated on the html tags or elements of an html page. Directives have a prefix “ng-” and are used for dom manipulations & data binding. Some of the most common directives are : ng-app, ng-controller,ng-repeat,ng-if etc.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    AngularJS Basic Interview Questions

    What is AngularJS?

    AngularJS is a javascript framework which helps in developing web applications in MVC architectural pattern & SPA or..

    AngularJS Basic Interview Questions

    What are custom directives?

    Angular provides the ability to create our own directives to implement our own custom templates or logic in our web appl..

    AngularJS Basic Interview Questions

    What is the use of restrict and template property when creating custom directives?

    Custom directives gives us the ability to create our own directives. Its restriction property helps us to enforce the de..