ui-router minification of templateUrl?

时间:2015-05-02 07:09:23

标签: angularjs angular-ui-router

我有这段代码:

.config(
['$locationProvider', '$sceDelegateProvider', '$sceProvider', '$stateProvider', function ($locationProvider, $sceDelegateProvider, $sceProvider, $stateProvider) {

    var access = {
        name: 'access',
        url: '/Access/:content',
        templateUrl: ['$stateParams', function ($stateParams) {
            var x = $stateParams;
            var page = 'app/access/partials/' + $stateParams.content + '.html';
            return page;
        }]
    };

我做了我认为在缩小时使这项工作需要的东西,但似乎AngularJS无法解决$stateParams

有没有人遇到过类似的问题?

0 个答案:

没有答案