Skip to content

Commit

Permalink
Merge pull request shyamseshadri#2 from chibicode/patch-1
Browse files Browse the repository at this point in the history
Uglifier-friendly resolve objects in $routeProvider
  • Loading branch information
shyamseshadri committed Aug 3, 2013
2 parents aac1356 + ece1b99 commit 3f51dc3
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 3f51dc3

Please sign in to comment.