mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-26 11:37:31 +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:
@@ -4,9 +4,7 @@ import { Http } from 'angular2/http';
|
||||
import * as models from '../../../models/models';
|
||||
|
||||
@ng.Component({
|
||||
selector: 'album-details'
|
||||
})
|
||||
@ng.View({
|
||||
selector: 'album-details',
|
||||
templateUrl: './ng-app/components/public/album-details/album-details.html'
|
||||
})
|
||||
export class AlbumDetails {
|
||||
|
||||
@@ -4,9 +4,7 @@ import * as models from '../../../models/models';
|
||||
|
||||
@ng.Component({
|
||||
selector: 'album-tile',
|
||||
properties: ['albumData']
|
||||
})
|
||||
@ng.View({
|
||||
properties: ['albumData'],
|
||||
templateUrl: './ng-app/components/public/album-tile/album-tile.html',
|
||||
directives: [router.ROUTER_DIRECTIVES]
|
||||
})
|
||||
|
||||
@@ -5,9 +5,7 @@ import * as models from '../../../models/models';
|
||||
import { AlbumTile } from '../album-tile/album-tile';
|
||||
|
||||
@ng.Component({
|
||||
selector: 'genre-contents'
|
||||
})
|
||||
@ng.View({
|
||||
selector: 'genre-contents',
|
||||
templateUrl: './ng-app/components/public/genre-contents/genre-contents.html',
|
||||
directives: [AlbumTile]
|
||||
})
|
||||
|
||||
@@ -4,9 +4,7 @@ import { Http } from 'angular2/http';
|
||||
import * as models from '../../../models/models';
|
||||
|
||||
@ng.Component({
|
||||
selector: 'genres-list'
|
||||
})
|
||||
@ng.View({
|
||||
selector: 'genres-list',
|
||||
templateUrl: './ng-app/components/public/genres-list/genres-list.html',
|
||||
directives: [router.ROUTER_DIRECTIVES]
|
||||
})
|
||||
|
||||
@@ -4,9 +4,7 @@ import { AlbumTile } from '../album-tile/album-tile';
|
||||
import * as models from '../../../models/models';
|
||||
|
||||
@ng.Component({
|
||||
selector: 'home'
|
||||
})
|
||||
@ng.View({
|
||||
selector: 'home',
|
||||
templateUrl: './ng-app/components/public/home/home.html',
|
||||
directives: [AlbumTile]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user