Java, .NET, PHP, PYTHON, ANGULAR, ML, Data Science, Testing, CI Tutorials in Easy Languages.

"Best Software Training, Internship, Project Development center of Indore India, Helpline 780506-3968"

Create User Define Directive in Angular Application:-

Directive is used to provide predefine functionality under angular application we can create our own directive tag using directive();

app.module('modulename',[]).directive('directivename',function(){ return{ template :value}})

Example of Directive Elements of Angular JS:-
<!DOCTYPE html>
    <script src=""> </script>
<div ng-app="myapp" ng-controller="myctrl">



angular.module('myapp',[]).directive('scs',function(){return {template:'<marquee>welcome in SHIVA Concept Solution</marquee>'}});


Post a Comment

POST Answer of Questions and ASK to Doubt

Previous Post Next Post