Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
AngularJS ng-app Directive with Name Example
Keywords : Angularjs ng-app with name example, Create angularjs application with ng-app name example, Use ng-app with name in angularjs example, Angularjs ng-app directive with name example
Example
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> AngularJs ng-app Directive with module name example </title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <script type="text/javascript"> var app = angular.module('angularsample', []); </script> </head> <body> OutSide Name: {{name}} <div ng-app="angularsample" ng-init="name='Tutlane'"> <p>Your Nmae: {{name}}</p> </div> OutSide Name: {{name}} </body> </html>
Click Here to See Result
Result
Previous