Angular controller being run twice [solved]

Handsontable JavaScript Spreadsheet Most popular component for web apps

Ok figured it out with some guidance from Stewie in the comments.

My app has routing, and it was navigating to MyController like so:

But I also had this in home.html:

Which was instructing AngularJS to digest my controller twice. To solve it I simply removed the data-ng-controller from my HTML.

Obviously really when I think about it!

ref:
https://stackoverflow.com/questions/15535336/combating-angularjs-executing-controller-twice

Sam Deering

Sam Deering

Sam is a web developer, online entrepreneur and investor. In his spare time he enjoys coding, playing chess and sharing what he learns with others.

Leave a Reply

Your email address will not be published. Required fields are marked *