Angular controller being run twice [solved]

Angular controller being run twice [solved]

Here is what we think are the Angular controller being run twice [solved].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!

Conclusion:

So these are the Angular controller being run twice [solved] .If you like this tutorial script then share it with your community. If you have any suggestion Feel free to comment below.If you want to learn more about PHPCodeIgniterAngularJSLaraveljQuery  Web Development then daily visit PHPCodify. Sharing is Caring.

Angular controller being run twice [solved]

Read previous post:
angularjs logo
AngularJS Drop Down Filter Example

AngularJS Drop Down Filter Example AngularJS Drop Down Filter in this example there is a list of clients who work...

Close