You can inject dependencies to the directive like in other modules:
.directive('myDirective', ['$timeout', function($timeout) {
return {
...
link: function($scope, element){
//use $timeout
}
};
}]);
You can inject dependencies to the directive like in other modules:
.directive('myDirective', ['$timeout', function($timeout) {
return {
...
link: function($scope, element){
//use $timeout
}
};
}]);