Dependency Injection with FreshMvvm in Xamarin.Forms
Now that we know how to navigate with FreshMvvm, it's time to learn how to add dependency injection in the mix. In this video we will learn about the dependency container, how to register classes, their lifecycle and see how our dependencies are injected in the constructor. This will make your life a lot easier! 💝 Join this channel to get access to perks: https://www.youtube.com/channel/GeraldVersluis/join 🛑 Don't forget to subscribe to my channel for more amazing content: https://www.youtube.com/GeraldVersluis/?sub_confirmation=1 🐦 Follow me on Twitter: https://twitter.com/jfversluis 🤝 Join the MAUIverse Discord server: https://mauiverse.net/discord 🔗 Links Sample code repo: https://github.com/jfversluis/XFFreshMvvmDependencyInjectionSample FreshMvvm Intro Video: https://www.youtube.com/watch?v=bj7ZxrmyzTA FreshMvvm Navigation Video: https://youtu.be/C7ykJ66CbgY Intro to Dependency Injection Video: https://www.youtube.com/watch?v=tTJetZj3vg0 FreshMvvm Repo: https://github.com/rid00z/FreshMvvm ⏱ Timestamps 00:00 - Intro 00:13 - Inspect End Result 00:48 - Sample App Outline 03:00 - Implement Dependency Injection 09:24 - Dependency Injection with Interfaces 09:47 - Class Lifetime Registration 11:32 - Implement Interface Sample 15:38 - Outro 🎥 Video edited with Camtasia (ref): https://techsmith.z6rjha.net/AJoeD 🙋♂️ Also find my... Twitter: https://twitter.com/jfversluis Blog: https://blog.verslu.is Twitch: https://twitch.tv/jfversluis All the rest: https://jfversluis.dev #XamarinForms #FreshMvvm #DependencyInjection #MVVMFramework #ConstructionInjection #TinyIOC
Download
0 formatsNo download links available.