Encountering an error when trying to use the Async Pipe with a newly created Observable?
"Cannot read property 'subscribe' of undefined"
Check out this Plunkr for a demonstration: https://plnkr.co/edit/vljXImCYoNubjyxOaWo3?p=preview
If you comment out
private asyncList: Observable<string[]> = new Observable<string[]>();
and uncomment
//private asyncList: Observable<string[]>;
the page should load without any issues. It might be a simple oversight, but it's causing some confusion.
This Plunkr was based on someone else's work, so please overlook any unconventional naming or practices you come across.