diff --git a/modules/@angular/examples/common/ngIf/ts/e2e_test/ngIf_spec.ts b/modules/@angular/examples/common/ngIf/ts/e2e_test/ngIf_spec.ts index d2648be31c..57a5e22f40 100644 --- a/modules/@angular/examples/common/ngIf/ts/e2e_test/ngIf_spec.ts +++ b/modules/@angular/examples/common/ngIf/ts/e2e_test/ngIf_spec.ts @@ -20,7 +20,7 @@ describe('ngIf', () => { afterEach(verifyNoBrowserErrors); describe('ng-if-simple', () => { - var comp = 'ng-if-simple' + let comp = 'ng-if-simple'; it('should hide/show content', () => { browser.get(URL); waitForElement(comp); @@ -31,7 +31,7 @@ describe('ngIf', () => { }); describe('ng-if-else', () => { - var comp = 'ng-if-else' + let comp = 'ng-if-else'; it('should hide/show content', () => { browser.get(URL); waitForElement(comp); @@ -43,7 +43,7 @@ describe('ngIf', () => { }); describe('ng-if-then-else', () => { - var comp = 'ng-if-then-else' + let comp = 'ng-if-then-else'; it('should hide/show content', () => { browser.get(URL); waitForElement(comp); @@ -59,7 +59,7 @@ describe('ngIf', () => { }); describe('ng-if-let', () => { - var comp = 'ng-if-let' + let comp = 'ng-if-let'; it('should hide/show content', () => { browser.get(URL); waitForElement(comp); diff --git a/modules/@angular/examples/common/ngIf/ts/module.ts b/modules/@angular/examples/common/ngIf/ts/module.ts index 2eff3c6258..881d802264 100644 --- a/modules/@angular/examples/common/ngIf/ts/module.ts +++ b/modules/@angular/examples/common/ngIf/ts/module.ts @@ -93,9 +93,9 @@ class NgIfLet { lastIndex = 0; nextUser() { - var first = this.first[this.firstIndex++]; + let first = this.first[this.firstIndex++]; if (this.firstIndex >= this.first.length) this.firstIndex = 0; - var last = this.last[this.lastIndex++]; + let last = this.last[this.lastIndex++]; if (this.lastIndex >= this.last.length) this.lastIndex = 0; this.userObservable.next({first, last}); }