/album is Server side renderable
This commit is contained in:
1 parent
c2a457eea7
commit
b829885b00
5 files changed
+70
-29
No files matched your search
@@ -126,19 +126,6 @@ app.config(($locationProvider, $routeProvider) => {
|
||||
.then(i => i.data)
|
||||
}
|
||||
},
|
||||
{
|
||||
name: '/album/:id',
|
||||
template: '<page-album album="$resolve.album"></page-album>',
|
||||
resolve: {
|
||||
album: ($route, api) => {
|
||||
let id = $route.current.params.id
|
||||
|
||||
return api.album
|
||||
.fetch(id)
|
||||
.then(i => i.data)
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name: '/awards',
|
||||
template: '<page-awards items="$resolve.awards"></page-awards>',
|
||||
|
||||
Reference in new issue
Block a user