首页 > Angularjs UI-route 为什么无法跳转到 test.html ?

Angularjs UI-route 为什么无法跳转到 test.html ?

    
            .state('tab', {
                url        : '/tab',
                abstract   : true,
                templateUrl: 'views/common/tabs.html'
            })
            .state('tab.home', {
                url  : '/home',
                views: {
                    'tab-home': {
                        templateUrl: 'views/home/tab-home.html',
                        controller : 'HomeCtrl'
                    }
                }
            })


            .state('tab.home.test', {
                url  : '/test',
                views: {
                    'tab-home@tab.home': {
                        templateUrl: 'views/home/test.html'
                    }

                }
            })

请问为什么无法跳转到 test.html ? 谢谢


截图截一半,菊花拌大蒜


你可以把你的html代码贴一下噢, 按你这么写得话test.html会填充子模板的ui-view的


为什么不直接同上面显示的templateUrl呢?


光写个路由,让它往哪跳呀。。。

【热门文章】
【热门文章】