mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 18:19:40 +00:00
Remove explicit imports for NgIf/NgFor/NgClass, as that's no longer needed
This commit is contained in:
@@ -1,13 +1,11 @@
|
|||||||
import * as ng from 'angular2/core';
|
import * as ng from 'angular2/core';
|
||||||
import { NgIf } from 'angular2/common';
|
|
||||||
import * as models from '../../../models/models';
|
import * as models from '../../../models/models';
|
||||||
|
|
||||||
@ng.Component({
|
@ng.Component({
|
||||||
selector: 'album-delete-prompt'
|
selector: 'album-delete-prompt'
|
||||||
})
|
})
|
||||||
@ng.View({
|
@ng.View({
|
||||||
templateUrl: './ng-app/components/admin/album-delete-prompt/album-delete-prompt.html',
|
templateUrl: './ng-app/components/admin/album-delete-prompt/album-delete-prompt.html'
|
||||||
directives: [NgIf]
|
|
||||||
})
|
})
|
||||||
export class AlbumDeletePrompt {
|
export class AlbumDeletePrompt {
|
||||||
public album: models.Album;
|
public album: models.Album;
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import * as ng from 'angular2/core';
|
|||||||
import * as router from 'angular2/router';
|
import * as router from 'angular2/router';
|
||||||
import * as models from '../../../models/models';
|
import * as models from '../../../models/models';
|
||||||
import { Http, HTTP_BINDINGS } from 'angular2/http';
|
import { Http, HTTP_BINDINGS } from 'angular2/http';
|
||||||
import { NgIf } from 'angular2/common';
|
|
||||||
import { AlbumDeletePrompt } from '../album-delete-prompt/album-delete-prompt';
|
import { AlbumDeletePrompt } from '../album-delete-prompt/album-delete-prompt';
|
||||||
|
|
||||||
@ng.Component({
|
@ng.Component({
|
||||||
@@ -10,7 +9,7 @@ import { AlbumDeletePrompt } from '../album-delete-prompt/album-delete-prompt';
|
|||||||
})
|
})
|
||||||
@ng.View({
|
@ng.View({
|
||||||
templateUrl: './ng-app/components/admin/album-details/album-details.html',
|
templateUrl: './ng-app/components/admin/album-details/album-details.html',
|
||||||
directives: [router.ROUTER_DIRECTIVES, NgIf, AlbumDeletePrompt]
|
directives: [router.ROUTER_DIRECTIVES, AlbumDeletePrompt]
|
||||||
})
|
})
|
||||||
export class AlbumDetails {
|
export class AlbumDetails {
|
||||||
public albumData: models.Album;
|
public albumData: models.Album;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import * as ng from 'angular2/core';
|
import * as ng from 'angular2/core';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { Control, ControlGroup, FormBuilder, Validators, NgIf, NgFor, FORM_DIRECTIVES } from 'angular2/common';
|
import { Control, ControlGroup, FormBuilder, Validators, FORM_DIRECTIVES } from 'angular2/common';
|
||||||
import * as router from 'angular2/router';
|
import * as router from 'angular2/router';
|
||||||
import * as models from '../../../models/models';
|
import * as models from '../../../models/models';
|
||||||
import { Http, HTTP_BINDINGS, Headers, Response } from 'angular2/http';
|
import { Http, HTTP_BINDINGS, Headers, Response } from 'angular2/http';
|
||||||
@@ -13,7 +13,7 @@ import * as AspNet from 'angular2-aspnet';
|
|||||||
})
|
})
|
||||||
@ng.View({
|
@ng.View({
|
||||||
templateUrl: './ng-app/components/admin/album-edit/album-edit.html',
|
templateUrl: './ng-app/components/admin/album-edit/album-edit.html',
|
||||||
directives: [router.ROUTER_DIRECTIVES, NgIf, NgFor, AlbumDeletePrompt, FormField, FORM_DIRECTIVES]
|
directives: [router.ROUTER_DIRECTIVES, AlbumDeletePrompt, FormField, FORM_DIRECTIVES]
|
||||||
})
|
})
|
||||||
export class AlbumEdit {
|
export class AlbumEdit {
|
||||||
public form: ControlGroup;
|
public form: ControlGroup;
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import * as ng from 'angular2/core';
|
import * as ng from 'angular2/core';
|
||||||
import * as router from 'angular2/router';
|
import * as router from 'angular2/router';
|
||||||
import { Http, HTTP_BINDINGS } from 'angular2/http';
|
import { Http, HTTP_BINDINGS } from 'angular2/http';
|
||||||
import { NgFor, NgClass } from 'angular2/common';
|
|
||||||
import * as models from '../../../models/models';
|
import * as models from '../../../models/models';
|
||||||
import { AlbumDeletePrompt } from '../album-delete-prompt/album-delete-prompt';
|
import { AlbumDeletePrompt } from '../album-delete-prompt/album-delete-prompt';
|
||||||
|
|
||||||
@@ -10,7 +9,7 @@ import { AlbumDeletePrompt } from '../album-delete-prompt/album-delete-prompt';
|
|||||||
})
|
})
|
||||||
@ng.View({
|
@ng.View({
|
||||||
templateUrl: './ng-app/components/admin/albums-list/albums-list.html',
|
templateUrl: './ng-app/components/admin/albums-list/albums-list.html',
|
||||||
directives: [NgFor, NgClass, router.ROUTER_DIRECTIVES, AlbumDeletePrompt]
|
directives: [router.ROUTER_DIRECTIVES, AlbumDeletePrompt]
|
||||||
})
|
})
|
||||||
export class AlbumsList {
|
export class AlbumsList {
|
||||||
public rows: models.Album[];
|
public rows: models.Album[];
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
import * as ng from 'angular2/core';
|
import * as ng from 'angular2/core';
|
||||||
import { NgIf, NgFor, AbstractControl } from 'angular2/common';
|
import { AbstractControl } from 'angular2/common';
|
||||||
|
|
||||||
@ng.Component({
|
@ng.Component({
|
||||||
selector: 'form-field',
|
selector: 'form-field',
|
||||||
properties: ['label', 'validate']
|
properties: ['label', 'validate']
|
||||||
})
|
})
|
||||||
@ng.View({
|
@ng.View({
|
||||||
templateUrl: './ng-app/components/admin/form-field/form-field.html',
|
templateUrl: './ng-app/components/admin/form-field/form-field.html'
|
||||||
directives: [NgIf, NgFor]
|
|
||||||
})
|
})
|
||||||
export class FormField {
|
export class FormField {
|
||||||
public errorMessages: string[] = [];
|
public errorMessages: string[] = [];
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import * as ng from 'angular2/core';
|
import * as ng from 'angular2/core';
|
||||||
import * as router from 'angular2/router';
|
import * as router from 'angular2/router';
|
||||||
import { Http, HTTP_BINDINGS } from 'angular2/http';
|
import { Http, HTTP_BINDINGS } from 'angular2/http';
|
||||||
import { NgFor } from 'angular2/common';
|
|
||||||
import { Home } from '../public/home/home';
|
import { Home } from '../public/home/home';
|
||||||
import { AlbumDetails } from '../public/album-details/album-details';
|
import { AlbumDetails } from '../public/album-details/album-details';
|
||||||
import { GenreContents } from '../public/genre-contents/genre-contents';
|
import { GenreContents } from '../public/genre-contents/genre-contents';
|
||||||
@@ -22,7 +21,7 @@ import * as models from '../../models/models';
|
|||||||
@ng.View({
|
@ng.View({
|
||||||
templateUrl: './ng-app/components/app/app.html',
|
templateUrl: './ng-app/components/app/app.html',
|
||||||
styleUrls: ['./ng-app/components/app/app.css'],
|
styleUrls: ['./ng-app/components/app/app.css'],
|
||||||
directives: [router.ROUTER_DIRECTIVES, NgFor]
|
directives: [router.ROUTER_DIRECTIVES]
|
||||||
})
|
})
|
||||||
export class App {
|
export class App {
|
||||||
public genres: models.Genre[];
|
public genres: models.Genre[];
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import * as ng from 'angular2/core';
|
import * as ng from 'angular2/core';
|
||||||
import * as router from 'angular2/router';
|
import * as router from 'angular2/router';
|
||||||
import { NgIf } from 'angular2/common';
|
|
||||||
import { Http } from 'angular2/http';
|
import { Http } from 'angular2/http';
|
||||||
import * as models from '../../../models/models';
|
import * as models from '../../../models/models';
|
||||||
|
|
||||||
@@ -8,8 +7,7 @@ import * as models from '../../../models/models';
|
|||||||
selector: 'album-details'
|
selector: 'album-details'
|
||||||
})
|
})
|
||||||
@ng.View({
|
@ng.View({
|
||||||
templateUrl: './ng-app/components/public/album-details/album-details.html',
|
templateUrl: './ng-app/components/public/album-details/album-details.html'
|
||||||
directives: [NgIf]
|
|
||||||
})
|
})
|
||||||
export class AlbumDetails {
|
export class AlbumDetails {
|
||||||
public albumData: models.Album;
|
public albumData: models.Album;
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import * as ng from 'angular2/core';
|
import * as ng from 'angular2/core';
|
||||||
import * as router from 'angular2/router';
|
import * as router from 'angular2/router';
|
||||||
import { NgFor } from 'angular2/common';
|
|
||||||
import { Http } from 'angular2/http';
|
import { Http } from 'angular2/http';
|
||||||
import * as models from '../../../models/models';
|
import * as models from '../../../models/models';
|
||||||
import { AlbumTile } from '../album-tile/album-tile';
|
import { AlbumTile } from '../album-tile/album-tile';
|
||||||
@@ -10,7 +9,7 @@ import { AlbumTile } from '../album-tile/album-tile';
|
|||||||
})
|
})
|
||||||
@ng.View({
|
@ng.View({
|
||||||
templateUrl: './ng-app/components/public/genre-contents/genre-contents.html',
|
templateUrl: './ng-app/components/public/genre-contents/genre-contents.html',
|
||||||
directives: [NgFor, AlbumTile]
|
directives: [AlbumTile]
|
||||||
})
|
})
|
||||||
export class GenreContents {
|
export class GenreContents {
|
||||||
public albums: models.Album[];
|
public albums: models.Album[];
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import * as ng from 'angular2/core';
|
import * as ng from 'angular2/core';
|
||||||
import * as router from 'angular2/router';
|
import * as router from 'angular2/router';
|
||||||
import { NgIf, NgFor } from 'angular2/common';
|
|
||||||
import { Http } from 'angular2/http';
|
import { Http } from 'angular2/http';
|
||||||
import * as models from '../../../models/models';
|
import * as models from '../../../models/models';
|
||||||
|
|
||||||
@@ -9,7 +8,7 @@ import * as models from '../../../models/models';
|
|||||||
})
|
})
|
||||||
@ng.View({
|
@ng.View({
|
||||||
templateUrl: './ng-app/components/public/genres-list/genres-list.html',
|
templateUrl: './ng-app/components/public/genres-list/genres-list.html',
|
||||||
directives: [router.ROUTER_DIRECTIVES, NgIf, NgFor]
|
directives: [router.ROUTER_DIRECTIVES]
|
||||||
})
|
})
|
||||||
export class GenresList {
|
export class GenresList {
|
||||||
public genres: models.Genre[];
|
public genres: models.Genre[];
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import * as ng from 'angular2/core';
|
import * as ng from 'angular2/core';
|
||||||
import { Http } from 'angular2/http';
|
import { Http } from 'angular2/http';
|
||||||
import { NgFor } from 'angular2/common';
|
|
||||||
import { AlbumTile } from '../album-tile/album-tile';
|
import { AlbumTile } from '../album-tile/album-tile';
|
||||||
import * as models from '../../../models/models';
|
import * as models from '../../../models/models';
|
||||||
|
|
||||||
@@ -9,7 +8,7 @@ import * as models from '../../../models/models';
|
|||||||
})
|
})
|
||||||
@ng.View({
|
@ng.View({
|
||||||
templateUrl: './ng-app/components/public/home/home.html',
|
templateUrl: './ng-app/components/public/home/home.html',
|
||||||
directives: [NgFor, AlbumTile]
|
directives: [AlbumTile]
|
||||||
})
|
})
|
||||||
export class Home {
|
export class Home {
|
||||||
public mostPopular: models.Album[];
|
public mostPopular: models.Album[];
|
||||||
|
|||||||
Reference in New Issue
Block a user