index.router.js 1.2 KB
Newer Older
Y
Your Name 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
(function() {
    //author:广州银云信息科技有限公司
    'use strict';
    angular.module('eolinker')
        .config(['$stateProvider', 'RouteHelpersProvider', function($stateProvider, helper) {
            $stateProvider
                .state('home.balance', {
                    url: '/balance',
                    template: '<div ui-view></div>',
                    containerRouter:true
                })
                .state('home.balance.service', {
                    url: '/service',
                    template: '<balance-service></balance-service>'
                })
                .state('home.balance.list', {
                    url: '/list',
                    template: '<div ui-view></div>'
                })
                .state('home.balance.list.default', {
                    url: '/',
                    template: '<balance-list group-arr="$ctrl.balanceGroupArr"></balance-list>'
                })
                .state('home.balance.list.operate', {
                    url: '/:status?balanceName',
                    template: '<balance-operate group-arr="$ctrl.balanceGroupArr"></balance-operate>',
                    resolve: helper.resolveFor( 'ACE_EDITOR')
                });
        }])
})();