Timeline for Getting "Cannot read property 'http' of undefined" with Angular 7
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 28, 2018 at 12:52 | vote | accept | Felipe Belluco | ||
| Dec 27, 2018 at 20:42 | answer | added | Aragorn | timeline score: 2 | |
| Dec 27, 2018 at 20:30 | review | Close votes | |||
| Dec 31, 2018 at 0:00 | |||||
| Dec 27, 2018 at 20:11 | comment | added | JB Nizet |
return forkJoin(samples.map(sample => this.save(sample)));
|
|
| Dec 27, 2018 at 20:10 | comment | added | JB Nizet | Possible duplicate of How to access the correct `this` inside a callback? | |
| Dec 27, 2018 at 20:00 | comment | added | Sunil | Its related to the context of object. In first case context will change however in second option context will always be the same. Refer- ryanmorr.com/understanding-scope-and-context-in-javascript | |
| Dec 27, 2018 at 19:53 | comment | added | yurzui | this is how javascript works. If you want to keep the first option then write it as instance function github.com/Microsoft/TypeScript/wiki/… | |
| Dec 27, 2018 at 19:49 | history | asked | Felipe Belluco | CC BY-SA 4.0 |