Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. angular.module('home', [])
  2. .controller('homeHomeController', HomeHomeController)
  3. .controller('homeContentController', HomeContentController);
  4.  
  5. class HomeHomeController {
  6. static $inject = [
  7. '$http',
  8. 'examService',
  9. 'stateService',
  10. 'userService'
  11. ];
  12. constructor(
  13. private $http: ng.IHttpService,
  14. private $es: IExamService,
  15. private $ss: IStateService,
  16. private $us: IUserService
  17. ) {
  18. var self = this;
  19. }
  20. }
  21.  
  22. Error: [ng:areq] Argument 'HomeHomeController' is not a function, got undefined
  23. http://errors.angularjs.org/1.3.0/ng/areq?p0=HomeHomeController&p1=not%20aNaNunction%2C%20got%20undefined
  24. at http://127.0.0.1:17315/Scripts/angular.js:80:12
  25. at assertArg (http://127.0.0.1:17315/Scripts/angular.js:1610:11)
  26. at assertArgFn (http://127.0.0.1:17315/Scripts/angular.js:1620:3)
  27. at http://127.0.0.1:17315/Scripts/angular.js:8319:9
  28. at http://127.0.0.1:17315/Scripts/angular.js:7496:34
  29. at forEach (http://127.0.0.1:17315/Scripts/angular.js:343:20)
  30. at nodeLinkFn (http://127.0.0.1:17315/Scripts/angular.js:7483:11)
  31. at compositeLinkFn (http://127.0.0.1:17315/Scripts/angular.js:6991:13)
  32. at publicLinkFn (http://127.0.0.1:17315/Scripts/angular.js:6870:30)
  33. at compile (http://127.0.0.1:17315/Scripts/angular-ui-router.js:3335:9)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement