Skip to content

Commit 404c986

Browse files
committed
Member access
1 parent acf91ea commit 404c986

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

angular-app/src/app/httpclient/httpclient.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {Subscription} from 'rxjs';
1010
})
1111
export class HttpclientComponent implements OnInit, OnDestroy {
1212

13-
subscription: Subscription;
13+
private subscription: Subscription;
1414

1515
title: string;
1616

angular-app/src/app/router-events/router-events.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {Event, Router} from '@angular/router';
88
})
99
export class RouterEventsComponent implements OnInit {
1010

11-
event: Event;
11+
private event: Event;
1212

1313
constructor(private router: Router) {
1414
}

angular-app/src/app/rxjs-timer-complete/rxjs-timer-complete.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {take} from 'rxjs/operators';
1010
})
1111
export class RxjsTimerCompleteComponent implements OnInit, OnDestroy {
1212

13-
subscription: Subscription;
13+
private subscription: Subscription;
1414

1515
counter = 0;
1616

angular-app/src/app/rxjs-timer/rxjs-timer.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {Title} from '@angular/platform-browser';
99
})
1010
export class RxjsTimerComponent implements OnInit, OnDestroy {
1111

12-
subscription: Subscription;
12+
private subscription: Subscription;
1313

1414
counter = 0;
1515

angular-app/src/app/unsubscription-methods/gather-subscriptions/gather-subscriptions.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export class GatherSubscriptionsComponent implements OnInit, OnDestroy {
1010

1111
private readonly subscription = new Subscription();
1212

13-
everySecond = timer(0, 1000);
14-
everyThirdSecond = timer(0, 3000);
13+
private everySecond = timer(0, 1000);
14+
private everyThirdSecond = timer(0, 3000);
1515

1616
constructor() {
1717
}

angular-app/src/app/unsubscription-methods/take-until/take-until.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export class TakeUntilComponent implements OnInit, OnDestroy {
1111

1212
private readonly ngDestroy = new Subject();
1313

14-
everySecond = timer(0, 1000);
15-
everyThirdSecond = timer(0, 3000);
14+
private everySecond = timer(0, 1000);
15+
private everyThirdSecond = timer(0, 3000);
1616

1717
constructor() {
1818
}

angular-app/src/app/unsubscription-methods/until-destroyed/until-destroyed.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {untilDestroyed} from 'ngx-take-until-destroy';
99
})
1010
export class UntilDestroyedComponent implements OnInit, OnDestroy {
1111

12-
everySecond = timer(0, 1000);
13-
everyThirdSecond = timer(0, 3000);
12+
private everySecond = timer(0, 1000);
13+
private everyThirdSecond = timer(0, 3000);
1414

1515
constructor() {
1616
}

0 commit comments

Comments
 (0)