mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
update to alpha.28)
domElement renamed to nativeElement
This commit is contained in:
@ -15,11 +15,11 @@ import {ElementRef} from 'angular2/src/core/compiler/element_ref';
|
||||
})
|
||||
export class Icon {
|
||||
constructor(elementRef: ElementRef) {
|
||||
this.domElement = elementRef.domElement;
|
||||
this.ele = elementRef.nativeElement;
|
||||
}
|
||||
onInit() {
|
||||
if (this.name) {
|
||||
this.domElement.classList.add(this.name);
|
||||
this.ele.classList.add(this.name);
|
||||
this.label = this.name;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user