Déplacer résolve dans state

parent 62b0d307
Pipeline #4661 passed with stage
in 13 minutes and 6 seconds
......@@ -168,7 +168,10 @@ angular.module('bars.api.food', [
}],
sellitem_list: ['api.models.sellitem', function(SellItem) {
return SellItem.all();
}]
}],
best_ever: ['food_item', function (food_item) {
return food_item.ranking({});
}]
},
views: {
'@bar.food': {
......@@ -185,16 +188,11 @@ angular.module('bars.api.food', [
},
'graphs@bar.food.details': {
templateUrl: "components/API/food/views/details-graphs.html",
controller: 'api.ctrl.food_details.graphs',
controller: 'api.ctrl.food_details.graphs'
},
'ranking@bar.food.details': {
templateUrl: "components/API/food/views/details-ranking.html",
controller: 'api.ctrl.food_details.ranking',
resolve: {
best_ever: ['food_item', function (food_item) {
return food_item.ranking({});
}]
}
controller: 'api.ctrl.food_details.ranking'
},
'edit@bar.food.details': {
templateUrl: "components/API/food/views/details-edit.html",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment