Angular module config not called

后端 未结 3 916
失恋的感觉
失恋的感觉 2020-12-29 04:48

I\'m trying to get my head around AngularJS and ran into a problem.

var myApp = angular.module(\'myApp\', [\'myApp.services\']);

myApp.config([\'$routeP         


        
3条回答
  •  自闭症患者
    2020-12-29 05:31

    I was missing ng-app="myApp" inside my html tag - and I realized this while reading your question :-)

提交回复
热议问题