angular-up-and-running icon indicating copy to clipboard operation
angular-up-and-running copied to clipboard

chapter 3, exercise 3: example code shows numbers 0-19 instead 1-20.

Open rubiesonthesky opened this issue 6 years ago • 0 comments

The exercise description is as follows

Move to display a drop down with quantity selection from 1 to 20 (generated via ngFor).

The example code gives you numbers 0-19. component

this.quantities = []; for (let i = 1; i < 21; i++) { this.quantities.push(i); }

It could be fixed as below or some way similar. :)

this.quantities = []; for (let i = 1; i < 21; i++) { this.quantities.push(i); }

rubiesonthesky avatar Apr 09 '18 13:04 rubiesonthesky