mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-26 03:27:30 +00:00
Update Angular 2 Music Store sample to latest Angular 2 and other dependencies. Switch from asp-ng2-prerender-module to the more general asp-prerender-module.
This commit is contained in:
@@ -5,17 +5,15 @@ import { AlbumDetails } from '../album-details/album-details';
|
||||
import { AlbumEdit } from '../album-edit/album-edit';
|
||||
|
||||
@ng.Component({
|
||||
selector: 'admin-home'
|
||||
selector: 'admin-home',
|
||||
templateUrl: './ng-app/components/admin/admin-home/admin-home.html',
|
||||
directives: [router.ROUTER_DIRECTIVES]
|
||||
})
|
||||
@router.RouteConfig([
|
||||
{ path: 'albums', name: 'Albums', component: AlbumsList },
|
||||
{ path: 'album/details/:albumId', name: 'AlbumDetails', component: AlbumDetails },
|
||||
{ path: 'album/edit/:albumId', name: 'AlbumEdit', component: AlbumEdit }
|
||||
])
|
||||
@ng.View({
|
||||
templateUrl: './ng-app/components/admin/admin-home/admin-home.html',
|
||||
directives: [router.ROUTER_DIRECTIVES]
|
||||
})
|
||||
export class AdminHome {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user