Source Code:
(back to article)
Submit
Result:
Report an issue
99
1
2
3
4
5
6
7
8
9
10
11
›
...
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)
}
}
})
... 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) } } })