How to handle modals "declaratively/reactively" with Angular (and is it any better?)
In this video, we take a look at two ways to handle coding the same modal in an Ionic and Angular application - one declarative and one imperative. The imperative example mostly utilises writing logic in the component's class, whereas the declarative example utilises properties on the component in the template.
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/ionic-declarative-modal
0:00 Simple Imperative Example
1:29 Simple Declarative Example
4:01 Simple Comparison
4:37 Advanced Declarative Example
7:30 Advanced Imperative Example
8:52 Conclusion
More on imperative vs declarative: https://youtu.be/Fr9e9Fo6iMw
More on the Quicklists app: https://youtu.be/CGRQLBa6FRk
#ionic #angular #rxjs
- More tutorials: https://eliteionic.com
- Follow me on Twitter: https://twitter.com/joshuamorony