Skip to content

Commit

Permalink
code cleanup home-routes.ts: readable labels for resolve tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
RAeschimann committed Dec 14, 2015
1 parent c9b1ec3 commit 92abe80
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions SpaBergaufDotCh/app/home/home-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ module home {
controller: 'IndexCtrl',
controllerAs: 'home',
resolve: {
'Something': ['Repository', function (Repository: Home.Services.IRepository) {
'GalleryData': ['Repository', function (Repository: Home.Services.IRepository) {
return Repository.loadGalleryData();
}],
'Somethingelse': ['Tagging', function (Tagging: Home.Services.ITagging) {
'Tags': ['Tagging', function (Tagging: Home.Services.ITagging) {
return Tagging.loadAllTags();
}]
}
Expand All @@ -26,10 +26,10 @@ module home {
controller: 'IndexCtrl',
controllerAs: 'home',
resolve: {
'Something': ['Repository', function (Repository: Home.Services.IRepository) {
'GalleryData': ['Repository', function (Repository: Home.Services.IRepository) {
return Repository.loadGalleryData();
}],
'Somethingelse': ['Tagging', function (Tagging: Home.Services.ITagging) {
'Tags': ['Tagging', function (Tagging: Home.Services.ITagging) {
return Tagging.loadAllTags();
}]
}
Expand All @@ -39,10 +39,10 @@ module home {
controller: 'IndexCtrl',
controllerAs: 'home',
resolve: {
'Something': ['Repository', function (Repository: Home.Services.IRepository) {
'GalleryData': ['Repository', function (Repository: Home.Services.IRepository) {
return Repository.loadGalleryData();
}],
'Somethingelse': ['Tagging', function (Tagging: Home.Services.ITagging) {
'Tags': ['Tagging', function (Tagging: Home.Services.ITagging) {
return Tagging.loadAllTags();
}]
}
Expand All @@ -52,10 +52,10 @@ module home {
controller: 'IndexCtrl',
controllerAs: 'home',
resolve: {
'Something': ['Repository', function (Repository: Home.Services.IRepository) {
'GalleryData': ['Repository', function (Repository: Home.Services.IRepository) {
return Repository.loadGalleryData();
}],
'Somethingelse': ['Tagging', function (Tagging: Home.Services.ITagging) {
'Tags': ['Tagging', function (Tagging: Home.Services.ITagging) {
return Tagging.loadAllTags();
}]
}
Expand All @@ -70,10 +70,10 @@ module home {
controller: 'GalleryDetailCtrl',
controllerAs: 'galleryDetail',
resolve: {
'Something': ['Repository', function (Repository: Home.Services.IRepository) {
'GalleryData': ['Repository', function (Repository: Home.Services.IRepository) {
return Repository.loadGalleryData();
}],
'Somethingelse': ['Tagging', function (Tagging: Home.Services.ITagging) {
'Tags': ['Tagging', function (Tagging: Home.Services.ITagging) {
return Tagging.loadAllTags();
}]
}
Expand All @@ -83,10 +83,10 @@ module home {
controller: 'GalleryDetailCtrl',
controllerAs: 'galleryDetail',
resolve: {
'Something': ['Repository', function (Repository: Home.Services.IRepository) {
'GalleryData': ['Repository', function (Repository: Home.Services.IRepository) {
return Repository.loadGalleryData();
}],
'Somethingelse': ['Tagging', function (Tagging: Home.Services.ITagging) {
'Tags': ['Tagging', function (Tagging: Home.Services.ITagging) {
return Tagging.loadAllTags();
}]
}
Expand All @@ -97,10 +97,10 @@ module home {
controller: 'IndexCtrl',
controllerAs: 'home',
resolve: {
'Something': ['Repository', function (Repository: Home.Services.IRepository) {
'GalleryData': ['Repository', function (Repository: Home.Services.IRepository) {
return Repository.loadGalleryData();
}],
'Somethingelse': ['Tagging', function (Tagging: Home.Services.ITagging) {
'Tags': ['Tagging', function (Tagging: Home.Services.ITagging) {
return Tagging.loadAllTags();
}]
}
Expand All @@ -110,10 +110,10 @@ module home {
controller: 'IndexCtrl',
controllerAs: 'home',
resolve: {
'Something': ['Repository', function (Repository: Home.Services.IRepository) {
'GalleryData': ['Repository', function (Repository: Home.Services.IRepository) {
return Repository.loadGalleryData();
}],
'Somethingelse': ['Tagging', function (Tagging: Home.Services.ITagging) {
'Tags': ['Tagging', function (Tagging: Home.Services.ITagging) {
return Tagging.loadAllTags();
}]
}
Expand All @@ -123,10 +123,10 @@ module home {
controller: 'IndexCtrl',
controllerAs: 'home',
resolve: {
'Something': ['Repository', function (Repository: Home.Services.IRepository) {
'GalleryData': ['Repository', function (Repository: Home.Services.IRepository) {
return Repository.loadGalleryData();
}],
'Somethingelse': ['Tagging', function (Tagging: Home.Services.ITagging) {
'Tags': ['Tagging', function (Tagging: Home.Services.ITagging) {
return Tagging.loadAllTags();
}]
}
Expand All @@ -136,10 +136,10 @@ module home {
controller: 'IndexCtrl',
controllerAs: 'home',
resolve: {
'Something': ['Repository', function (Repository: Home.Services.IRepository) {
'GalleryData': ['Repository', function (Repository: Home.Services.IRepository) {
return Repository.loadGalleryData();
}],
'Somethingelse': ['Tagging', function (Tagging: Home.Services.ITagging) {
'Tags': ['Tagging', function (Tagging: Home.Services.ITagging) {
return Tagging.loadAllTags();
}]
}
Expand All @@ -149,10 +149,10 @@ module home {
controller: 'IndexCtrl',
controllerAs: 'home',
resolve: {
'Something': ['Repository', function (Repository: Home.Services.IRepository) {
'GalleryData': ['Repository', function (Repository: Home.Services.IRepository) {
return Repository.loadGalleryData();
}],
'Somethingelse': ['Tagging', function (Tagging: Home.Services.ITagging) {
'Tags': ['Tagging', function (Tagging: Home.Services.ITagging) {
return Tagging.loadAllTags();
}]
}
Expand All @@ -162,10 +162,10 @@ module home {
controller: 'IndexCtrl',
controllerAs: 'home',
resolve: {
'Something': ['Repository', function (Repository: Home.Services.IRepository) {
'GalleryData': ['Repository', function (Repository: Home.Services.IRepository) {
return Repository.loadGalleryData();
}],
'Somethingelse': ['Tagging', function (Tagging: Home.Services.ITagging) {
'Tags': ['Tagging', function (Tagging: Home.Services.ITagging) {
return Tagging.loadAllTags();
}]
}
Expand All @@ -175,10 +175,10 @@ module home {
controller: 'IndexCtrl',
controllerAs: 'home',
resolve: {
'Something': ['Repository', function (Repository: Home.Services.IRepository) {
'GalleryData': ['Repository', function (Repository: Home.Services.IRepository) {
return Repository.loadGalleryData();
}],
'Somethingelse': ['Tagging', function (Tagging: Home.Services.ITagging) {
'Tags': ['Tagging', function (Tagging: Home.Services.ITagging) {
return Tagging.loadAllTags();
}]
}
Expand All @@ -188,10 +188,10 @@ module home {
controller: 'IndexCtrl',
controllerAs: 'home',
resolve: {
'Something': ['Repository', function (Repository: Home.Services.IRepository) {
'GalleryData': ['Repository', function (Repository: Home.Services.IRepository) {
return Repository.loadGalleryData();
}],
'Somethingelse': ['Tagging', function (Tagging: Home.Services.ITagging) {
'Tags': ['Tagging', function (Tagging: Home.Services.ITagging) {
return Tagging.loadAllTags();
}]
}
Expand All @@ -201,10 +201,10 @@ module home {
controller: 'IndexCtrl',
controllerAs: 'home',
resolve: {
'Something': ['Repository', function (Repository: Home.Services.IRepository) {
'GalleryData': ['Repository', function (Repository: Home.Services.IRepository) {
return Repository.loadGalleryData();
}],
'Somethingelse': ['Tagging', function (Tagging: Home.Services.ITagging) {
'Tags': ['Tagging', function (Tagging: Home.Services.ITagging) {
return Tagging.loadAllTags();
}]
}
Expand All @@ -214,10 +214,10 @@ module home {
controller: 'GalleryDetailCtrl',
controllerAs: 'galleryDetail',
resolve: {
'Something': ['Repository', function (Repository: Home.Services.IRepository) {
'GalleryData': ['Repository', function (Repository: Home.Services.IRepository) {
return Repository.loadGalleryData();
}],
'Somethingelse': ['Tagging', function (Tagging: Home.Services.ITagging) {
'Tags': ['Tagging', function (Tagging: Home.Services.ITagging) {
return Tagging.loadAllTags();
}]
}
Expand All @@ -228,10 +228,10 @@ module home {
controller: 'GalleryDetailCtrl',
controllerAs: 'galleryDetail',
resolve: {
'Something': ['Repository', function (Repository: Home.Services.IRepository) {
'GalleryData': ['Repository', function (Repository: Home.Services.IRepository) {
return Repository.loadGalleryData();
}],
'Somethingelse': ['Tagging', function (Tagging: Home.Services.ITagging) {
'Tags': ['Tagging', function (Tagging: Home.Services.ITagging) {
return Tagging.loadAllTags();
}]
}
Expand All @@ -241,10 +241,10 @@ module home {
controller: 'UserhomeCtrl',
controllerAs: 'vm',
resolve: {
'Something': ['Repository', function (Repository: Home.Services.IRepository) {
'GalleryData': ['Repository', function (Repository: Home.Services.IRepository) {
return Repository.loadGalleryData();
}],
'Somethingelse': ['Tagging', function (Tagging: Home.Services.ITagging) {
'Tags': ['Tagging', function (Tagging: Home.Services.ITagging) {
return Tagging.loadAllTags();
}]
}
Expand Down

0 comments on commit 92abe80

Please sign in to comment.