Skip to content

Commit

Permalink
Uglifier-friendly resolve objects in $routeProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
chibicode committed Jun 5, 2013
1 parent 8243066 commit ece1b99
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions chapter4/guthub/app/scripts/controllers/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ app.config(['$routeProvider', function($routeProvider) {
when('/', {
controller: 'ListCtrl',
resolve: {
recipes: function(MultiRecipeLoader) {
recipes: ["MultiRecipeLoader", function(MultiRecipeLoader) {
return MultiRecipeLoader();
}
}]
},
templateUrl:'/views/list.html'
}).when('/edit/:recipeId', {
controller: 'EditCtrl',
resolve: {
recipe: function(RecipeLoader) {
recipe: ["RecipeLoader", function(RecipeLoader) {
return RecipeLoader();
}
}]
},
templateUrl:'/views/recipeForm.html'
}).when('/view/:recipeId', {
controller: 'ViewCtrl',
resolve: {
recipe: function(RecipeLoader) {
recipe: ["RecipeLoader", function(RecipeLoader) {
return RecipeLoader();
}
}]
},
templateUrl:'/views/viewRecipe.html'
}).when('/new', {
Expand Down

0 comments on commit ece1b99

Please sign in to comment.