Skip to content

Commit 3622588

Browse files
committed
fix(ssr): remove private property usage #6199
1 parent 38e0e6c commit 3622588

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

projects/igniteui-angular/src/lib/carousel/carousel.component.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class IgxCarouselComponent implements OnDestroy {
112112
* @memberof IgxCarouselComponent
113113
*/
114114
set interval(value: number) {
115-
if (this._platformBrowser) {
115+
if (this.platformUtil.isBrowser) {
116116
this._interval = +value;
117117
this._restartInterval();
118118
}
@@ -203,11 +203,8 @@ export class IgxCarouselComponent implements OnDestroy {
203203
private _currentSlide: IgxSlideComponent;
204204
private _destroyed: boolean;
205205
private _total = 0;
206-
private _platformBrowser: boolean;
207206

208-
constructor(private element: ElementRef, private platformUtil: PlatformUtil) {
209-
this._platformBrowser = this.platformUtil.isBrowser;
210-
}
207+
constructor(private element: ElementRef, private platformUtil: PlatformUtil) { }
211208
/**
212209
*@hidden
213210
*/

0 commit comments

Comments
 (0)