November 2018
Beginner
502 pages
10h 22m
English
This option makes the TypeScript compiler run indefinitely. Whenever a source file is changed, the compiling process is triggered automatically to generate the new version. This is a useful option to switch on during our developments:
tsc orderDetail --watch
getTotal(discount: number): number { const priceWithoutDiscount = this.product.unitPrice * this.quantity; const discountAmount = priceWithoutDiscount * (discount || 0); return priceWithoutDiscount - discountAmount;}
Read now
Unlock full access