O'Reilly logo
  • Marek Stankiewicz thinks this is interesting:

use binding for the quantity attribute, the value 100 arrives in OrderComponent as a string (all values in HTML attributes are strings). If you want to preserve the types, use bindings, like this: [quantity]="100".

From

Cover of Angular 2 Development with TypeScript

Note

sprawdzam dziaƂanie