chore(): fix IonicApp types

This commit is contained in:
Tim Lancina
2016-01-13 23:05:12 -06:00
parent 84621a9315
commit 6e9ac500c2
2 changed files with 13 additions and 12 deletions

View File

@ -13,20 +13,19 @@ import {rafFrames} from '../../util/dom';
*/
@Injectable()
export class IonicApp {
private _titleSrv: Title = new Title();
private _title: string = '';
private _disTime: number = 0;
private _scrollTime: number = 0;
// Our component registry map
private components: any = {};
constructor(
private _config: Config,
private _clickBlock: ClickBlock,
private _zone: NgZone
) {
this._titleSrv = new Title();
this._title = '';
this._disTime = 0;
this._scrollTime = 0;
// Our component registry map
this.components = {};
}
) {}
/**
* Sets the document title.

View File

@ -1,4 +1,4 @@
import {AppViewManager, ElementRef, Directive, Renderer} from 'angular2/core';
import {AppViewManager, ElementRef, Directive, Renderer, Input} from 'angular2/core';
import {IonicApp} from './app';
@ -41,6 +41,8 @@ import {IonicApp} from './app';
inputs: ['id']
})
export class IdRef {
component: any;
id: string;
constructor(private _app: IonicApp, private _elementRef: ElementRef, private _appViewManager: AppViewManager) {
// Grab the component this directive is attached to
@ -75,11 +77,11 @@ export class IdRef {
* @demo /docs/v2/demos/attr/
*/
@Directive({
selector: '[attr]',
inputs: ['attr']
selector: '[attr]'
})
export class Attr {
@Input() attr: string;
constructor(private _renderer: Renderer, private _elementRef: ElementRef) {}
/**