Wisdom Materials
Home
About Us
Our Clients
Careers
Services
Education
Jobs
News
Business
Health
Astrology
Entertainment
RealEstate
Devotion
Contact Us
AngularJS
/ AngularJS for Creating New Directives
AngularJS for Creating New Directives using directive function.
Program Name
Write a AngularJS Program for Creating New Directives.
Theory
AngularJS for Creating New Directives using directive function.
Program Code
Copy Program Code
<script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.8.2/angular.min.js"> </script> <h1>Repeating HTML Elements</h1> <div ng-app="myApp" abcd1234></div> <script> var app9 = angular.module("myApp", []); app9.directive("abcd1234", function () { return { template: "Wisdom Materials constructored new directive!" }; }); </script>
Input
Wisdom Materials constructored new directive!
Output
Home
Back
Home
About Us
Our Clients
Careers
Services
Education
Jobs
News
Business
Health
Astrology
Entertainment
RealEstate
Devotion
Contact Us