AngularJS dependency injection of value inside of module.config

前端 未结 3 1939
日久生厌
日久生厌 2020-11-29 03:48

Trying to setup some helpers value to the module. Tried with service and value and it didn\'t help:

var finance = angular.module(\'finance\', [\'finance.serv         


        
3条回答
  •  执笔经年
    2020-11-29 04:01

    Your helper method is called templatePath and you are calling it inside .config as getTemplatePath. Shouldn't it be:

    when('/', {
                templateUrl: helpers.templatePath('dashboard'),
                controller: DashboardController
         }) 
    

提交回复
热议问题