top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are directives in AngularJS and name them?

+4 votes
314 views
What are directives in AngularJS and name them?
posted Dec 31, 2016 by Pramod Huilgol

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

AngularJs Directives

A core feature of AngularJS, directives are attributes that allow you to invent new HTML syntax, specific to your application. They are essentially functions that execute when the Angular compiler finds them in the DOM. Some of the most commonly used directives are ng-app,ng-controller and ng-repeat.

The different types of directives are:

Element directives
Attribute directives
CSS class directives
Comment directives

answer Jan 11, 2017 by Navya
...