1angular.module('myApp').directive('abc', function($timeout) {
2 return {
3 restrict: 'EA',
4 replace: true,
5 transclude: true,
6 scope: true,
7 link: function(scope, elem, attr) { /* link function */ },
8 controller: function($scope, $element) { /* controller function */ }
9 };
10}
11