@@ -8,7 +8,7 @@ import { SkyWaitService } from '../wait.service';
88 templateUrl : './wait.component.fixture.html' ,
99} )
1010export class SkyWaitTestComponent {
11- public ariaLabel : string ;
11+ public ariaLabel : string | undefined ;
1212
1313 public isWaiting = false ;
1414 public isFullPage = false ;
@@ -26,23 +26,27 @@ export class SkyWaitTestComponent {
2626 public secondWaitIsWaiting = false ;
2727
2828 @ViewChild ( SkyWaitComponent )
29- public waitComponent : SkyWaitComponent ;
29+ public waitComponent : SkyWaitComponent | undefined ;
3030
31- constructor ( private waitService : SkyWaitService ) { }
31+ #waitSvc: SkyWaitService ;
32+
33+ constructor ( waitSvc : SkyWaitService ) {
34+ this . #waitSvc = waitSvc ;
35+ }
3236
3337 public endBlockingWait ( ) : void {
34- this . waitService . endBlockingPageWait ( ) ;
38+ this . #waitSvc . endBlockingPageWait ( ) ;
3539 }
3640
3741 public endNonBlockingWait ( ) : void {
38- this . waitService . endNonBlockingPageWait ( ) ;
42+ this . #waitSvc . endNonBlockingPageWait ( ) ;
3943 }
4044
4145 public startBlockingWait ( ) : void {
42- this . waitService . beginBlockingPageWait ( ) ;
46+ this . #waitSvc . beginBlockingPageWait ( ) ;
4347 }
4448
4549 public startNonBlockingWait ( ) : void {
46- this . waitService . beginNonBlockingPageWait ( ) ;
50+ this . #waitSvc . beginNonBlockingPageWait ( ) ;
4751 }
4852}
0 commit comments