Login
Sign Up
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
Home
Examples
Angularjs Examples
AngularJS ng-init Example
AngularJS ng-init
AngularJS ng-init Example
Posted On : 22 Apr 2016
Total Views : 2433
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="http://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 Output
Output
Share this example
PREVIOUS
AngularJS ng-app Example
NEXT
AngularJS ng-init Multiple Values Example
Topics Covered
Search Terms
×
SIGN IN
Thanks to Register with tutlane.com
We sent verification mail to your registered email address to activate your account.
Please check your mail inbox in case if it not there check it in spam / junk folder
Email Address
Password
Lost Password?
Sign In
Dont have an Account yet?
Sign Up
Full Name
Email ID
Password
Re-enter Password
Register
Already have an account?
Sign In
Enter the email you used in your Tutlane profile. We will send your details.
E-mail Address
Submit
An Email has been sent with your account information. Please check your email and login
Already have an account?
Sign In