Found the answer,

Turns out the following did not work :
scope.$watch(scope.sourceList, (newVal) => {

But the following does:
scope.$watch('sourceList', (newVal) => {




On Wednesday, 18 May 2016 10:18:10 UTC+1, Jagdip Ajimal wrote:
>
> Hi,
>
> I am trying to create a custom select directive, with a watch on the list 
> that is getting passed in. My problem is the watch function is not being 
> called when the list is changed. I have some sample code here: 
> http://codepen.io/jagdipa/pen/Ramjez. Can someone please help.
>
> Jag
>

-- 
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