angular.directive.ng:app

Description

Use this directive to auto-bootstrap on application. Only one directive can be used per HTML document. The directive designates the root of the application and is typically placed ot the root of the page.

In the example below if the ng:app directive would not be placed on the html element then the document would not be compiled and the {{ 1+2 }} would not be resolved to 3.

ng:app is the easiest way to bootstrap an application.

    I can add: 1 + 2 =  {{ 1+2 }}
   

Usage

<ANY ng:app="module">
   ...
</ANY>

Parameters