mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(angular): upgrade to angular 2.0.0-beta.1
Biggest change was that renderer takes and not just .
This commit is contained in:
@@ -279,14 +279,12 @@ export class Alert extends ViewController {
|
||||
host: {
|
||||
'role': 'dialog',
|
||||
'[attr.aria-labelledby]': 'hdrId',
|
||||
'[attr.aria-describedby]': 'descId',
|
||||
'[class]': 'cssClass'
|
||||
'[attr.aria-describedby]': 'descId'
|
||||
},
|
||||
directives: [NgClass, NgSwitch, NgIf, NgFor]
|
||||
})
|
||||
class AlertCmp {
|
||||
activeId: string;
|
||||
cssClass: string;
|
||||
descId: string;
|
||||
d: any;
|
||||
hdrId: string;
|
||||
@@ -304,7 +302,10 @@ class AlertCmp {
|
||||
renderer: Renderer
|
||||
) {
|
||||
this.d = params.data;
|
||||
this.cssClass = this.d.cssClass || '';
|
||||
|
||||
if (this.d.cssClass) {
|
||||
renderer.setElementClass(elementRef.nativeElement, this.d.cssClass, true);
|
||||
}
|
||||
|
||||
this.id = (++alertIds);
|
||||
this.descId = '';
|
||||
|
||||
Reference in New Issue
Block a user