SyntaxFix
Write A Post
Hire A Developer
Questions
To watch out the runtime changes in value of a custom directive, use $observe method of attrs object, instead of putting $watch inside a custom directive. Here is the documentation for the same ... $observe docs
$observe
attrs
$watch