Angular controller code not being run

Angular controller code not being run

For some strange reason, one of my controllers fails to load had no idea why and all others worked fine.It would just load as normal and sit but the console.log() inside the controller would not output thus suggesting it’s not being loaded.

After some messing around I found that after I renamed Chat to ChatCtrl for my controller name and it seems to work!

Image

Another suggestion might be to include an init functon in the controller.

Conclusion:
So these are the Angular controller code not being run.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 code not being run

Read previous post:
angularjs logo
Folder Structure options for Laraval & AngularJS

Folder Structure options for Laraval & AngularJS As I see it, there are 3 options for the application folder structure...

Close