down votefavorite
<http://stackoverflow.com/questions/34858418/angular-directive-observe-a-template-div-for-changes#>
I have the following directive:
.directive('cmplt', function ($parse, $http, $sce, $timeout) {
return {
restrict: 'EA',
template: '<div><input id='{{id}}_fieldInpt' /></div
id='{{id}}_dropDown'><div></div>'
link: function($scope, elem, attrs) {
//code here
}
}
What i want to do is observe/watch any changes in the {{id}}_dropDown div.
How can i do it?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.