I have declared a variable in parent scope in one of my controllers.
$scope.myValue = true;
This value is fetched in the custom directive easily. But when the value is updated in the parent controller it is not reflected in the custom directive.
My question is how can we let the directive know that the "myValue" is changed?
If the info is not suffice kindly let me know.
$watchit inside the directive?$watching or are not$applying (through some built-in AngularJS directive likeng-clickor manually) when you change it in the parent scope.