akveo / akveo/blur-admin

Issue with child state on page reload

オープン
#259 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
11.3k
フォーク
3k
PR マージ指標
30日以内にマージされた PR はありません

説明

```
(function () {
'use strict';

angular.module('app.dashboard.pricing', [
'app.dashboard.pricing.items'
]).config(routeConfigPricing);

angular.module('app.dashboard.pricing.items',
[]).config(routeConfigPricingItems);

/** @ngInject */
function routeConfigPricing($stateProvider){
$stateProvider
.state('dashboard.pricing', {
url: '/pricing',
abstract: true
});
}

/** @ngInject */
function routeConfigPricingItems($stateProvider, $urlRouterProvider){
$stateProvider
.state('dashboard.pricing.dashboard', {
url: '/dashboard',
title:'Pricing Dashboard',
views: {
'content@dashboard':{
templateUrl:'app/dashboard/pricing/pricing.html',
controller: 'Pricing as vm'
}
},
pageHeader:{
subTitle: 'Product',
tiviews: {
'content@dashboard':{

}
},tle:'Pricing'
}
})
.state('dashboard.pricing.market',{
url:'/market',
title: 'Price Market',
pageHeader:{
subTitle: 'Add',
title: 'Price Market'
},
views:{
'content@dashboard':{
templateUrl: 'app/dashboard/pricing/priceMarket.html',
controller: 'PriceMarket as vm'
}
},
resolve:{
'allMarkets': function(pricing){
return pricing.getAllPriceMarkets().then(function(response){
return (response.data.pricingMarket);
});
}
}

})
.state('dashboard.pricing.productItems', {
url: '/products',
title:'Pricing ',
pageHeader:{
subTitle: 'Add',
title:'Product Price'
},
resolve:{
'allPriceItems': function(pricing){
return pricing.getAllProductItemPrice().then(function(res){
return res.data.allPrices;
})
}
},
views: {
'content@dashboard':{
templateUrl:'app/dashboard/pricing/productPricing.html',
controller:'ProductPricing as vm'
}
}
});

$urlRouterProvider.when('/pricing','/pricing/market');
}

})();
```

The above are child states and parent states I have created My states works fine but when the page reloads lets say on one of the child states the page does not loads Can any one help

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。