what-is-ng-app-angularjs-directive – OnlineWebTutorial.Com

what-is-ng-app-angularjs-directive

What do you want to know?Category: AngularJSwhat-is-ng-app-angularjs-directive
tcm asked 9 years ago

What is  ng-app – AngularJS Directive? Describe with example.

4 Answers
jeff77 Staff answered 9 years ago

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

jeff77 Staff replied 9 years ago

example :

Result: {{ a * b }}

jeff77 Staff answered 9 years ago

Result: {{ a * b }}

jeff77 Staff answered 9 years ago

Result: {{ a * b }}

jeff77 Staff answered 9 years ago

Result: {{ a * b }}

Facebook
Google+
Twitter
Visit Us
PINTEREST
LinkedIn