2

我在我的应用程序中使用带有 grunt 的 html2js,它正在创建一个包含我所有 html 模板的 template.js。我正在使用我的 app.js 来获取文件的模板,如下所示:

.config(['$stateProvider', '$urlRouterProvider',
    function($stateProvider, $urlRouterProvider) {
        $urlRouterProvider.otherwise('/');
        $stateProvider.state('abcde', {
            url: '/',
            abstract: true,
            templateUrl: 'app/sections/section1/section1.tpl.html'
        })

我现在应该为模板 url 声明什么以从 template.js 获取模板?

4

0 回答 0