chore(angular): upgrade to angular 2.0.0-beta.1

Biggest change was that renderer takes  and not just .
This commit is contained in:
Adam Bradley
2016-01-20 11:15:01 -06:00
parent 94ef1f4ce1
commit ee106377fc
21 changed files with 163 additions and 107 deletions

View File

@@ -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 = '';