Hi,

I think you should you use scope and set transclude to true, here is the 
live example on how it must be done
 http://plnkr.co/edit/69IVgHqpRLZikk7Fyhsc?p=preview 

On Friday, 22 January 2016 22:28:13 UTC+5:30, [email protected] wrote:
>
>
>
> 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.

Reply via email to