Source Code:
(back to article)
Submit
Result:
Report an issue
... module.directive("myDirective",function(){ return { ... link: function(scope, el, attrs){ scope.$watch(attrs.[any_attribute],function(data){ // for example any_attribute = 'ngModel' // alles, was Sie möchten },true) } } })