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:
SteveSandersonMS
2016-04-08 13:54:41 +01:00
parent 532da3de9f
commit 18a165d6f4
22 changed files with 754 additions and 59 deletions

View File

@@ -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 {

View File

@@ -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]
})

View File

@@ -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]
})

View File

@@ -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]
})

View File

@@ -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]
})