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 Directives Example
Keywords : Directives in angularjs with example, Angularjs directives tutorial documentation, Understand directives in angularjs with example
Example
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> AngularJs Directives Example </title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> </head> <body ng-app=""> <div> <input type="text" id="txtname" ng-model="name" /> <p>Your Nmae: {{name}}</p> </div> <div ng-init="employees=['Suresh','Rohini','Saineshwar']"> <p>Employee Details:</p> <ul> <li ng-repeat="name in employees"> {{ name }} </li> </ul> </div> </body> </html>
Click Here to See Result
Result
Previous
Next