ng-app directive defines an AngularJS application. This makes the element root of the application. This element becomes starting point to execute the program.
Syntax of ng-app:
<element_name ng-app=”module_name“>
…. Content here ….
<element_name>
Note: module_name is optional. It specifies the name of the module to be loaded.
For example: In given program, myFirstApp defines the application. Only one ng-app directive is required in an AngularJS application.
</p>
<p> Result: {{ a * b }}</p>
<p>
Try
example :
Result: {{ a * b }}
