Merge pull request #4971 from 3dd13/remove-css-classes-when-ion-icon-on-destroy

fix(icon): add ngOnDestroy to ion-icon and remove added css class
This commit is contained in:
Adam Bradley
2016-01-15 08:41:41 -06:00

View File

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