Skip to content

Commit

Permalink
refactor(module:radio): use Render2 instead of Render
Browse files Browse the repository at this point in the history
  • Loading branch information
hsuanxyz committed Dec 4, 2017
1 parent 22f0a77 commit 0a5bc9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/radio/nz-radio-group.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
Input,
ElementRef,
AfterContentInit,
Renderer,
Renderer2,
HostBinding,
forwardRef
} from '@angular/core';
Expand Down Expand Up @@ -82,7 +82,7 @@ export class NzRadioGroupComponent implements OnInit, AfterContentInit, ControlV
}


constructor(private _elementRef: ElementRef, private _render: Renderer) {
constructor(private _elementRef: ElementRef, private _render: Renderer2) {
this._el = this._elementRef.nativeElement;
}

Expand Down Expand Up @@ -117,6 +117,6 @@ export class NzRadioGroupComponent implements OnInit, AfterContentInit, ControlV
}

ngOnInit() {
this._render.setElementClass(this._el, `${this._prefixCls}`, true);
this._render.addClass(this._el, `${this._prefixCls}`);
}
}

0 comments on commit 0a5bc9a

Please sign in to comment.