parent
3bee521aa4
commit
aaf6e05f56
|
@ -20,7 +20,7 @@ describe('ngIf', () => {
|
||||||
afterEach(verifyNoBrowserErrors);
|
afterEach(verifyNoBrowserErrors);
|
||||||
|
|
||||||
describe('ng-if-simple', () => {
|
describe('ng-if-simple', () => {
|
||||||
var comp = 'ng-if-simple'
|
let comp = 'ng-if-simple';
|
||||||
it('should hide/show content', () => {
|
it('should hide/show content', () => {
|
||||||
browser.get(URL);
|
browser.get(URL);
|
||||||
waitForElement(comp);
|
waitForElement(comp);
|
||||||
|
@ -31,7 +31,7 @@ describe('ngIf', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('ng-if-else', () => {
|
describe('ng-if-else', () => {
|
||||||
var comp = 'ng-if-else'
|
let comp = 'ng-if-else';
|
||||||
it('should hide/show content', () => {
|
it('should hide/show content', () => {
|
||||||
browser.get(URL);
|
browser.get(URL);
|
||||||
waitForElement(comp);
|
waitForElement(comp);
|
||||||
|
@ -43,7 +43,7 @@ describe('ngIf', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('ng-if-then-else', () => {
|
describe('ng-if-then-else', () => {
|
||||||
var comp = 'ng-if-then-else'
|
let comp = 'ng-if-then-else';
|
||||||
it('should hide/show content', () => {
|
it('should hide/show content', () => {
|
||||||
browser.get(URL);
|
browser.get(URL);
|
||||||
waitForElement(comp);
|
waitForElement(comp);
|
||||||
|
@ -59,7 +59,7 @@ describe('ngIf', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('ng-if-let', () => {
|
describe('ng-if-let', () => {
|
||||||
var comp = 'ng-if-let'
|
let comp = 'ng-if-let';
|
||||||
it('should hide/show content', () => {
|
it('should hide/show content', () => {
|
||||||
browser.get(URL);
|
browser.get(URL);
|
||||||
waitForElement(comp);
|
waitForElement(comp);
|
||||||
|
|
|
@ -93,9 +93,9 @@ class NgIfLet {
|
||||||
lastIndex = 0;
|
lastIndex = 0;
|
||||||
|
|
||||||
nextUser() {
|
nextUser() {
|
||||||
var first = this.first[this.firstIndex++];
|
let first = this.first[this.firstIndex++];
|
||||||
if (this.firstIndex >= this.first.length) this.firstIndex = 0;
|
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;
|
if (this.lastIndex >= this.last.length) this.lastIndex = 0;
|
||||||
this.userObservable.next({first, last});
|
this.userObservable.next({first, last});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue