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

@@ -75,7 +75,7 @@ export class Icon {
*/
ngOnDestroy() {
if (this._css) {
this._renderer.setElementClass(this._elementRef, this._css, false);
this._renderer.setElementClass(this._elementRef.nativeElement, this._css, false);
}
}
@@ -146,12 +146,12 @@ export class Icon {
if (this._css !== css) {
if (this._css) {
this._renderer.setElementClass(this._elementRef, this._css, false);
this._renderer.setElementClass(this._elementRef.nativeElement, this._css, false);
}
this._css = css;
this._renderer.setElementClass(this._elementRef, css, true);
this._renderer.setElementClass(this._elementRef.nativeElement, css, true);
this._renderer.setElementAttribute(this._elementRef, 'aria-label',
this._renderer.setElementAttribute(this._elementRef.nativeElement, 'aria-label',
css.replace('ion-', '').replace('ios-', '').replace('md-', '').replace('-', ' '));
}
}
@@ -161,7 +161,7 @@ export class Icon {
* @param {string} add class name
*/
addClass(className: string) {
this._renderer.setElementClass(this._elementRef, className, true);
this._renderer.setElementClass(this._elementRef.nativeElement, className, true);
}
}