Remove explicit imports for NgIf/NgFor/NgClass, as that's no longer needed

This commit is contained in:
SteveSandersonMS
2016-01-26 11:20:57 +00:00
parent ea4c668a63
commit 5e5b12dc54
10 changed files with 12 additions and 23 deletions

View File

@@ -1,6 +1,5 @@
import * as ng from 'angular2/core';
import * as router from 'angular2/router';
import { NgIf } from 'angular2/common';
import { Http } from 'angular2/http';
import * as models from '../../../models/models';
@@ -8,8 +7,7 @@ import * as models from '../../../models/models';
selector: 'album-details'
})
@ng.View({
templateUrl: './ng-app/components/public/album-details/album-details.html',
directives: [NgIf]
templateUrl: './ng-app/components/public/album-details/album-details.html'
})
export class AlbumDetails {
public albumData: models.Album;

View File

@@ -1,6 +1,5 @@
import * as ng from 'angular2/core';
import * as router from 'angular2/router';
import { NgFor } from 'angular2/common';
import { Http } from 'angular2/http';
import * as models from '../../../models/models';
import { AlbumTile } from '../album-tile/album-tile';
@@ -10,7 +9,7 @@ import { AlbumTile } from '../album-tile/album-tile';
})
@ng.View({
templateUrl: './ng-app/components/public/genre-contents/genre-contents.html',
directives: [NgFor, AlbumTile]
directives: [AlbumTile]
})
export class GenreContents {
public albums: models.Album[];

View File

@@ -1,6 +1,5 @@
import * as ng from 'angular2/core';
import * as router from 'angular2/router';
import { NgIf, NgFor } from 'angular2/common';
import { Http } from 'angular2/http';
import * as models from '../../../models/models';
@@ -9,7 +8,7 @@ import * as models from '../../../models/models';
})
@ng.View({
templateUrl: './ng-app/components/public/genres-list/genres-list.html',
directives: [router.ROUTER_DIRECTIVES, NgIf, NgFor]
directives: [router.ROUTER_DIRECTIVES]
})
export class GenresList {
public genres: models.Genre[];

View File

@@ -1,6 +1,5 @@
import * as ng from 'angular2/core';
import { Http } from 'angular2/http';
import { NgFor } from 'angular2/common';
import { AlbumTile } from '../album-tile/album-tile';
import * as models from '../../../models/models';
@@ -9,7 +8,7 @@ import * as models from '../../../models/models';
})
@ng.View({
templateUrl: './ng-app/components/public/home/home.html',
directives: [NgFor, AlbumTile]
directives: [AlbumTile]
})
export class Home {
public mostPopular: models.Album[];