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 with Module Example
Keywords : Angularjs module directive example, Angularjs add directives to module example, How to append module with directives in angularjs with example
Example
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> AngularJs Adding Directives to Modules 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('angularmoduleapp', []); app.directive('w3TestDirective', function () { return { template: 'Welcome to Tutlane.com' }; }); </script> </head> <body> <h2>AngularJS Directives with Module Example</h2> <div ng-app="angularmoduleapp" w3-test-directive></div> </body> </html>
Click Here to See Result
Result
Previous
Next