|
|
* useful reference starting out https://www.typescriptlang.org/docs/handbook/basic-types.html
|
|
|
|
|
|
declare can be used to get around a libraries syntax that you dont have a chance to type.
|
|
|
|
|
|
* ex) for lodash you have to do the following:
|
|
|
- declare var _ as * from
|
|
|
* ex) declare var Window:any = window;
|
|
|
`declare let _ :any`
|
|
|
* ex) `declare var Window:any = window;`
|
|
|
|
|
|
On ngFor you must initialize to have an initial value:
|
|
|
*ex) private books: any = [{}];
|
... | ... | |