Search This Blog

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

If you have any doubt in programming or join online classes then you can contact us by comment .

Previous Post Next Post