Hello! Do you want to watch changes to the div content or the state (like hidden or visible)?
El viernes, 22 de enero de 2016, 13:58:13 (UTC-3), [email protected] escribió: > > > > 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.
