shyamseshadri / angular-up-and-running

Code repository for the Angular: Up & Running Book, which covers Angular 2+, using TypeScript and more...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

rubiesonthesky opened this issue · 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); }