angular-up-and-running
angular-up-and-running copied to clipboard
chapter 3, exercise 3: example code shows numbers 0-19 instead 1-20.
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); }