update to alpha.28)

domElement renamed to nativeElement
This commit is contained in:
Adam Bradley
2015-06-27 12:12:16 -05:00
parent a97527e0ad
commit 504ab46eb3
31 changed files with 5199 additions and 4348 deletions

View File

@ -11,13 +11,13 @@ import {View} from 'angular2/src/core/annotations_impl/view';
})
export class Content {
constructor(elementRef: ElementRef) {
// TODO(maxlynch): we need this domElement for things like aside, etc.
// TODO(maxlynch): we need this nativeElement for things like aside, etc.
// but we should be able to stamp out this behavior with a base IonicComponent
// or something, so all elements have a domElement reference or a getElement() method
this.domElement = elementRef.domElement;
// or something, so all elements have a nativeElement reference or a getElement() method
this.ele = elementRef.nativeElement;
setTimeout(() => {
this.scrollElement = this.domElement.children[0];
this.scrollElement = this.ele.children[0];
});
}