Why I use a view model stream for my Angular templates
Creating a single vm$ stream can be a convenient way to access all the data you need for your template, all with a single subscription using the async pipe.
Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076
Learn Angular with Ionic: https://ionicstart.com
Source code: https://github.com/joshuamorony/angular-vm-stream/blob/main/src/app/home/home.component.ts
Node REPL video: https://www.youtube.com/watch?v=Fl7kO8fDZFM
Hot/cold observables: https://www.youtube.com/watch?v=H542ZSyubrE
0:00 Introduction
1:12 How combineLatest works
4:54 Dealing with non-synchronous streams
8:13 Dealing with errors
14:26 Conclusion
#angular #rxjs
- More tutorials: https://eliteionic.com
- Follow me on Twitter: https://twitter.com/joshuamorony