This was due to my assumption that angular might be checking some 
initialization cases where it invokes listener's function with no regard to 
values. So I need to manually put a check if values watch were equal or not.

On Tuesday, September 8, 2015 at 2:17:24 PM UTC+5:30, Rohit Nandan wrote:
>
> I have a very simple example of d3js and angularjs which is calling its 
> render function twice while I want it to call it only once and I don't 
> understand why its been executed twice.
>
> Here goes the plunker http://plnkr.co/edit/YoWsbJeWJgONb8rcMdpA?p=preview
>

-- 
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to