0
我使用的不是Angular.js和$ stateProvider在我的項目在UI路由器麪包屑,我想用breacrumbs在我的項目。角JS -
注意:網址在.STATE不具有價值。
我想:製作breacrumbs沒有使用從Url。
myApp.config(function ($urlRouterProvider, $stateProvider) {
$urlRouterProvider.otherwise('/otherwise');
$stateProvider
.state('page1', {
contoller: 'appController',
url: '',
templateUrl: 'Page1.html',
})
.state('page2', {
contoller: 'appController',
url: '',
templateUrl: 'Page2.html'
})
.state('page3', {
contoller: 'appController',
url: '',
templateUrl: 'Page3.html'
})
.state("otherwise", {
contoller: 'appController',
url: "*path",
templateUrl: "page1.html",
});
});