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-init Example
Keywords : Angularjs ng-init directive example, Angularjs ng-init function example, Angularjs ng-init assign value to variable example
Example
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> AngularJs ng-init Directive example </title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> </head> <body> <div ng-app="" ng-init="name='Tutlane'"> <p>Website Name: {{name}}</p> </div> </body> </html>
Click Here to See Result
Result
Previous
Next