Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 0568af1

Browse files
jteplitzjeffbcross
authored andcommitted
fix(sidenav): Fix renderer calls to use beta1 api
1 parent f18b8b7 commit 0568af1

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"author": "",
1010
"license": "MIT",
1111
"dependencies": {
12-
"angular2": "2.0.0-beta.0",
12+
"angular2": "^2.0.0-beta.1",
1313
"es6-promise": "^3.0.2",
1414
"es6-shim": "^0.33.13",
1515
"firebase": "^2.3.2",

src/components/sidenav.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ class SideNavContent {
2525
}
2626
}
2727
setOpen(){
28-
this.renderer.setElementClass(this.el, 'side-nav__content--animatable', true);
29-
this.renderer.setElementStyle(this.el, 'transform', 'translateX(0px)');
28+
this.renderer.setElementClass(this.el.nativeElement, 'side-nav__content--animatable', true);
29+
this.renderer.setElementStyle(this.el.nativeElement, 'transform', 'translateX(0px)');
3030
}
3131
setClosed(){
32-
this.renderer.setElementClass(this.el, 'side-nav__content--animatable', true);
33-
this.renderer.setElementStyle(this.el, 'transform', 'translateX(-102%)');
32+
this.renderer.setElementClass(this.el.nativeElement, 'side-nav__content--animatable', true);
33+
this.renderer.setElementStyle(this.el.nativeElement, 'transform', 'translateX(-102%)');
3434
}
3535
cleanup(){
36-
this.renderer.setElementClass(this.el, 'side-nav__content--animatable', false);
36+
this.renderer.setElementClass(this.el.nativeElement, 'side-nav__content--animatable', false);
3737
}
3838

3939
}
@@ -65,4 +65,4 @@ export class SideNav {
6565
constructor(public nav: Nav){
6666
this.isVisible = nav.isOpen;
6767
}
68-
}
68+
}

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ <h1 class="header__title">NG2 App Shell</h1>
4141

4242
</body>
4343

44-
</html>
44+
</html>

0 commit comments

Comments
 (0)