Skip to content

Commit 5e5b12d

Browse files
Remove explicit imports for NgIf/NgFor/NgClass, as that's no longer needed
1 parent ea4c668 commit 5e5b12d

File tree

10 files changed

+12
-23
lines changed

10 files changed

+12
-23
lines changed

samples/angular/MusicStore/wwwroot/ng-app/components/admin/album-delete-prompt/album-delete-prompt.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import * as ng from 'angular2/core';
2-
import { NgIf } from 'angular2/common';
32
import * as models from '../../../models/models';
43

54
@ng.Component({
65
selector: 'album-delete-prompt'
76
})
87
@ng.View({
9-
templateUrl: './ng-app/components/admin/album-delete-prompt/album-delete-prompt.html',
10-
directives: [NgIf]
8+
templateUrl: './ng-app/components/admin/album-delete-prompt/album-delete-prompt.html'
119
})
1210
export class AlbumDeletePrompt {
1311
public album: models.Album;

samples/angular/MusicStore/wwwroot/ng-app/components/admin/album-details/album-details.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ import * as ng from 'angular2/core';
22
import * as router from 'angular2/router';
33
import * as models from '../../../models/models';
44
import { Http, HTTP_BINDINGS } from 'angular2/http';
5-
import { NgIf } from 'angular2/common';
65
import { AlbumDeletePrompt } from '../album-delete-prompt/album-delete-prompt';
76

87
@ng.Component({
98
selector: 'album-details'
109
})
1110
@ng.View({
1211
templateUrl: './ng-app/components/admin/album-details/album-details.html',
13-
directives: [router.ROUTER_DIRECTIVES, NgIf, AlbumDeletePrompt]
12+
directives: [router.ROUTER_DIRECTIVES, AlbumDeletePrompt]
1413
})
1514
export class AlbumDetails {
1615
public albumData: models.Album;

samples/angular/MusicStore/wwwroot/ng-app/components/admin/album-edit/album-edit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as ng from 'angular2/core';
22
import { Observable } from 'rxjs';
3-
import { Control, ControlGroup, FormBuilder, Validators, NgIf, NgFor, FORM_DIRECTIVES } from 'angular2/common';
3+
import { Control, ControlGroup, FormBuilder, Validators, FORM_DIRECTIVES } from 'angular2/common';
44
import * as router from 'angular2/router';
55
import * as models from '../../../models/models';
66
import { Http, HTTP_BINDINGS, Headers, Response } from 'angular2/http';
@@ -13,7 +13,7 @@ import * as AspNet from 'angular2-aspnet';
1313
})
1414
@ng.View({
1515
templateUrl: './ng-app/components/admin/album-edit/album-edit.html',
16-
directives: [router.ROUTER_DIRECTIVES, NgIf, NgFor, AlbumDeletePrompt, FormField, FORM_DIRECTIVES]
16+
directives: [router.ROUTER_DIRECTIVES, AlbumDeletePrompt, FormField, FORM_DIRECTIVES]
1717
})
1818
export class AlbumEdit {
1919
public form: ControlGroup;

samples/angular/MusicStore/wwwroot/ng-app/components/admin/albums-list/albums-list.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as ng from 'angular2/core';
22
import * as router from 'angular2/router';
33
import { Http, HTTP_BINDINGS } from 'angular2/http';
4-
import { NgFor, NgClass } from 'angular2/common';
54
import * as models from '../../../models/models';
65
import { AlbumDeletePrompt } from '../album-delete-prompt/album-delete-prompt';
76

@@ -10,7 +9,7 @@ import { AlbumDeletePrompt } from '../album-delete-prompt/album-delete-prompt';
109
})
1110
@ng.View({
1211
templateUrl: './ng-app/components/admin/albums-list/albums-list.html',
13-
directives: [NgFor, NgClass, router.ROUTER_DIRECTIVES, AlbumDeletePrompt]
12+
directives: [router.ROUTER_DIRECTIVES, AlbumDeletePrompt]
1413
})
1514
export class AlbumsList {
1615
public rows: models.Album[];

samples/angular/MusicStore/wwwroot/ng-app/components/admin/form-field/form-field.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import * as ng from 'angular2/core';
2-
import { NgIf, NgFor, AbstractControl } from 'angular2/common';
2+
import { AbstractControl } from 'angular2/common';
33

44
@ng.Component({
55
selector: 'form-field',
66
properties: ['label', 'validate']
77
})
88
@ng.View({
9-
templateUrl: './ng-app/components/admin/form-field/form-field.html',
10-
directives: [NgIf, NgFor]
9+
templateUrl: './ng-app/components/admin/form-field/form-field.html'
1110
})
1211
export class FormField {
1312
public errorMessages: string[] = [];

samples/angular/MusicStore/wwwroot/ng-app/components/app/app.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as ng from 'angular2/core';
22
import * as router from 'angular2/router';
33
import { Http, HTTP_BINDINGS } from 'angular2/http';
4-
import { NgFor } from 'angular2/common';
54
import { Home } from '../public/home/home';
65
import { AlbumDetails } from '../public/album-details/album-details';
76
import { GenreContents } from '../public/genre-contents/genre-contents';
@@ -22,7 +21,7 @@ import * as models from '../../models/models';
2221
@ng.View({
2322
templateUrl: './ng-app/components/app/app.html',
2423
styleUrls: ['./ng-app/components/app/app.css'],
25-
directives: [router.ROUTER_DIRECTIVES, NgFor]
24+
directives: [router.ROUTER_DIRECTIVES]
2625
})
2726
export class App {
2827
public genres: models.Genre[];

samples/angular/MusicStore/wwwroot/ng-app/components/public/album-details/album-details.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
import * as ng from 'angular2/core';
22
import * as router from 'angular2/router';
3-
import { NgIf } from 'angular2/common';
43
import { Http } from 'angular2/http';
54
import * as models from '../../../models/models';
65

76
@ng.Component({
87
selector: 'album-details'
98
})
109
@ng.View({
11-
templateUrl: './ng-app/components/public/album-details/album-details.html',
12-
directives: [NgIf]
10+
templateUrl: './ng-app/components/public/album-details/album-details.html'
1311
})
1412
export class AlbumDetails {
1513
public albumData: models.Album;

samples/angular/MusicStore/wwwroot/ng-app/components/public/genre-contents/genre-contents.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as ng from 'angular2/core';
22
import * as router from 'angular2/router';
3-
import { NgFor } from 'angular2/common';
43
import { Http } from 'angular2/http';
54
import * as models from '../../../models/models';
65
import { AlbumTile } from '../album-tile/album-tile';
@@ -10,7 +9,7 @@ import { AlbumTile } from '../album-tile/album-tile';
109
})
1110
@ng.View({
1211
templateUrl: './ng-app/components/public/genre-contents/genre-contents.html',
13-
directives: [NgFor, AlbumTile]
12+
directives: [AlbumTile]
1413
})
1514
export class GenreContents {
1615
public albums: models.Album[];

samples/angular/MusicStore/wwwroot/ng-app/components/public/genres-list/genres-list.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as ng from 'angular2/core';
22
import * as router from 'angular2/router';
3-
import { NgIf, NgFor } from 'angular2/common';
43
import { Http } from 'angular2/http';
54
import * as models from '../../../models/models';
65

@@ -9,7 +8,7 @@ import * as models from '../../../models/models';
98
})
109
@ng.View({
1110
templateUrl: './ng-app/components/public/genres-list/genres-list.html',
12-
directives: [router.ROUTER_DIRECTIVES, NgIf, NgFor]
11+
directives: [router.ROUTER_DIRECTIVES]
1312
})
1413
export class GenresList {
1514
public genres: models.Genre[];

samples/angular/MusicStore/wwwroot/ng-app/components/public/home/home.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as ng from 'angular2/core';
22
import { Http } from 'angular2/http';
3-
import { NgFor } from 'angular2/common';
43
import { AlbumTile } from '../album-tile/album-tile';
54
import * as models from '../../../models/models';
65

@@ -9,7 +8,7 @@ import * as models from '../../../models/models';
98
})
109
@ng.View({
1110
templateUrl: './ng-app/components/public/home/home.html',
12-
directives: [NgFor, AlbumTile]
11+
directives: [AlbumTile]
1312
})
1413
export class Home {
1514
public mostPopular: models.Album[];

0 commit comments

Comments
 (0)