fix(alert): fix css add class

This commit is contained in:
Adam Bradley
2016-01-20 12:24:54 -06:00
parent eeb0417d02
commit 72af685620

View File

@ -304,7 +304,9 @@ class AlertCmp {
this.d = params.data;
if (this.d.cssClass) {
renderer.setElementClass(elementRef.nativeElement, this.d.cssClass, true);
this.d.cssClass.split(' ').forEach(cssClass => {
renderer.setElementClass(_elementRef.nativeElement, cssClass, true);
});
}
this.id = (++alertIds);