Directives

Description

AngularJS directives allows us to create new HTML elements.

A built-in directive is one that ships out of the box with Angular.

All built-in directives are prefixed with the ng namespace.

The following code uses ng-app built-in directives.


<html ng-app="myApp">
    ...
</html>

Inside of our <html> element, we can use any of the built-in or custom directives.

All of the directives we use within the root element will have access to $rootScope





















Home »
  AngularJS »
    AngularJS Tutorial »




Introduction
Buildin Filters
Buildin Directives