Skip to content
Advertisement

Tag: angularjs-service

Angularjs: Error: [ng:areq] Argument ‘HomeController’ is not a function, got undefined

This is my demo using angularjs, for creating a service file, and adding service to a controller. I have two problems with my demo: One is when I put <script src=”HomeController.js”> before <script src=”MyService.js”> I get this error, Error: [ng:areq] Argument ‘HomeController’ is not a function, got undefined The other is when I put <script src=”MyService.js”> before <script src=”HomeController.js”> I

Advertisement