ng-app is a directive in AngularJs. Many of angularJs directives available in https://doc.angularjs.org/api go through this site and select API Reference from Develop menu. The Ng - app is a starting point of your anglers application. Angular framework will check first ng-app directive in your application. If ng-app directive found then bootstrap will start from the section of the page.
Example:
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script>
</head>
<body>
<div ng-app>
{{ "Welcome " + "to" + "AngularJs" }}
</div>
<div>
{{ "Welcome " + "to" + "AngularJs" }}
</div>
</body>
Description:
Double curly braces represent binding expression of angularjs. Here binding expression is three strings. These three strings concadinates with the help of angularjs binding expression.
Note:
Here the first data binding expression only evaluvated because of ng-app present in first div , so the second div data binding expression will not be evaluvated.
Output:
Post your comments / questions
Recent Article
- ModuleNotFounEerror:No module named celery in Django Project
- How to get domain name information from a Domain using Python
- ModulenotFoundError: no module named 'debug_toolbar' -SOLUTION
- How to create superuser in django project hosted in cPanel without terminal
- CSS & images not loading in django admin | cpanel without terminal
- Could not build wheels for mysqlclient, which is required to install pyproject.toml-based projects
- How to sell domain name on Godaddy (2023)
- TemplateSyntaxError at / Could not parse the remainder: ' + 1' from 'forloop.counter0 + 1'
Related Article