add ngOnDestroy to ion-icon and remove added css class

This commit is contained in:
Eddie Lau 3dd13
2016-01-15 13:25:59 +08:00
parent 4a9c3a11a6
commit a00e34254b

View File

@ -70,6 +70,15 @@ export class Icon {
}
}
/**
* @private
*/
ngOnDestroy() {
if (this._css) {
this._renderer.setElementClass(this._elementRef, this._css, false);
}
}
@Input()
get name() {
return this._name;