Basic Custom Directive
This is the Example for the basic custom directive
HTML
<div ng-app="myModule">
<h1>Custom Directive Example</h1>
<my-directive></my-directive>
</div>
JavaScript
angular.module('myModule',[])
.directive('myDirective', [function(){
return {
restrict: 'EA',
template: '<h4>Hello World!</h4>'
}
}]);