mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(): remove unused imports
This commit is contained in:
@ -1,9 +1,7 @@
|
||||
import {Component, Input, ViewEncapsulation} from 'angular2/core';
|
||||
import {NgIf} from 'angular2/common';
|
||||
|
||||
import {Config} from '../../config/config';
|
||||
import {InfiniteScroll} from './infinite-scroll';
|
||||
import {Spinner} from '../spinner/spinner';
|
||||
|
||||
|
||||
/**
|
||||
@ -18,7 +16,6 @@ import {Spinner} from '../spinner/spinner';
|
||||
'</div>' +
|
||||
'<div class="infinite-loading-text" [innerHTML]="loadingText" *ngIf="loadingText"></div>' +
|
||||
'</div>',
|
||||
directives: [NgIf, Spinner],
|
||||
host: {
|
||||
'[attr.state]': 'inf.state'
|
||||
},
|
||||
|
@ -1,7 +1,6 @@
|
||||
import {Component, Optional, ElementRef, ViewChild, ViewEncapsulation} from 'angular2/core';
|
||||
import {NgIf, NgControl} from 'angular2/common';
|
||||
import {NgControl} from 'angular2/common';
|
||||
|
||||
import {Button} from '../button/button';
|
||||
import {Config} from '../../config/config';
|
||||
import {Content} from '../content/content';
|
||||
import {Form} from '../../util/form';
|
||||
@ -70,10 +69,8 @@ import {Platform} from '../../platform/platform';
|
||||
'<button clear *ngIf="clearInput && value" type="button" class="text-input-clear-icon" (click)="clearTextInput()" (mousedown)="clearTextInput()"></button>' +
|
||||
'<div (touchstart)="pointerStart($event)" (touchend)="pointerEnd($event)" (mousedown)="pointerStart($event)" (mouseup)="pointerEnd($event)" class="input-cover" tappable *ngIf="_useAssist"></div>',
|
||||
directives: [
|
||||
NgIf,
|
||||
NextInput,
|
||||
NativeInput,
|
||||
Button
|
||||
],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
})
|
||||
@ -153,7 +150,6 @@ export class TextInput extends InputBase {
|
||||
'<input type="text" aria-hidden="true" next-input *ngIf="_useAssist">' +
|
||||
'<div (touchstart)="pointerStart($event)" (touchend)="pointerEnd($event)" (mousedown)="pointerStart($event)" (mouseup)="pointerEnd($event)" class="input-cover" tappable *ngIf="_useAssist"></div>',
|
||||
directives: [
|
||||
NgIf,
|
||||
NextInput,
|
||||
NativeInput
|
||||
],
|
||||
|
@ -1,5 +1,4 @@
|
||||
import {Component, ContentChildren, forwardRef, ViewChild, ContentChild, Renderer, ElementRef, ChangeDetectionStrategy, ViewEncapsulation} from 'angular2/core';
|
||||
import {NgIf} from 'angular2/common';
|
||||
|
||||
import {Button} from '../button/button';
|
||||
import {Form} from '../../util/form';
|
||||
@ -57,7 +56,6 @@ import {Label} from '../label/label';
|
||||
host: {
|
||||
'class': 'item'
|
||||
},
|
||||
directives: [NgIf, Label],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
})
|
||||
|
@ -1,10 +1,7 @@
|
||||
import {Component, Input, ChangeDetectionStrategy, ViewEncapsulation} from 'angular2/core';
|
||||
import {NgIf} from 'angular2/common';
|
||||
|
||||
import {Config} from '../../config/config';
|
||||
import {Icon} from '../icon/icon';
|
||||
import {Refresher} from './refresher';
|
||||
import {Spinner} from '../spinner/spinner';
|
||||
|
||||
|
||||
/**
|
||||
@ -25,11 +22,9 @@ import {Spinner} from '../spinner/spinner';
|
||||
'</div>' +
|
||||
'<div class="refresher-refreshing-text" [innerHTML]="refreshingText" *ngIf="refreshingText"></div>' +
|
||||
'</div>',
|
||||
directives: [NgIf, Icon, Spinner],
|
||||
host: {
|
||||
'[attr.state]': 'r.state'
|
||||
},
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
})
|
||||
export class RefresherContent {
|
||||
|
@ -1,5 +1,4 @@
|
||||
import {Directive, ElementRef, EventEmitter, Host, Input, Output, NgZone} from 'angular2/core';
|
||||
import {NgIf, NgClass} from 'angular2/common';
|
||||
|
||||
import {Content} from '../content/content';
|
||||
import {Icon} from '../icon/icon';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {ElementRef, Component, Directive, Host, HostBinding, HostListener, ViewChild, Input, Output, EventEmitter, Optional, ViewEncapsulation} from 'angular2/core';
|
||||
import {NgIf, NgClass, NgControl, FORM_DIRECTIVES} from 'angular2/common';
|
||||
import {NgControl} from 'angular2/common';
|
||||
|
||||
import {Ion} from '../ion';
|
||||
import {Config} from '../../config/config';
|
||||
@ -64,7 +64,7 @@ export class SearchbarInput {
|
||||
'<button clear class="searchbar-clear-icon" (click)="clearInput()" (mousedown)="clearInput()"></button>' +
|
||||
'</div>' +
|
||||
'<button clear (click)="cancelSearchbar()" (mousedown)="cancelSearchbar()" [hidden]="hideCancelButton" class="searchbar-ios-cancel">{{cancelButtonText}}</button>',
|
||||
directives: [FORM_DIRECTIVES, NgIf, NgClass, Icon, Button, SearchbarInput],
|
||||
directives: [SearchbarInput],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
})
|
||||
export class Searchbar extends Ion {
|
||||
|
@ -1,5 +1,4 @@
|
||||
import {Component, Directive, ElementRef, Optional, Host, forwardRef, ViewContainerRef, ViewChild, ViewChildren, EventEmitter, Output, Input, Renderer, Type, ViewEncapsulation} from 'angular2/core';
|
||||
import {NgFor, NgIf} from 'angular2/common';
|
||||
import {Component, Directive, ElementRef, Optional, Host, forwardRef, ViewContainerRef, ViewChild, ViewChildren, EventEmitter, Output, Input, Renderer, ViewEncapsulation} from 'angular2/core';
|
||||
|
||||
import {IonicApp} from '../app/app';
|
||||
import {Config} from '../../config/config';
|
||||
@ -10,8 +9,6 @@ import {Ion} from '../ion';
|
||||
import {Platform} from '../../platform/platform';
|
||||
import {NavController} from '../nav/nav-controller';
|
||||
import {ViewController} from '../nav/view-controller';
|
||||
import {Icon} from '../icon/icon';
|
||||
import {rafFrames} from '../../util/dom';
|
||||
import {isBlank, isTrueProperty} from '../../util/util';
|
||||
|
||||
|
||||
@ -154,9 +151,6 @@ import {isBlank, isTrueProperty} from '../../util/util';
|
||||
'<ng-content></ng-content>' +
|
||||
'</ion-content-section>',
|
||||
directives: [
|
||||
Icon,
|
||||
NgFor,
|
||||
NgIf,
|
||||
TabButton,
|
||||
TabHighlight,
|
||||
forwardRef(() => TabNavBarAnchor)
|
||||
|
Reference in New Issue
Block a user