Created
December 12, 2014 12:57
-
-
Save edysegura/357d5cfb312a04f19244 to your computer and use it in GitHub Desktop.
How to observer an attribute in AngularJS directive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return function(scope, element, attrs) { | |
attrs.$observe('key', function(value) { | |
console.log('key=', value); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment