Using dependency injection for building loosely coupled applications. The talk focuses on the inversion of control techniques specifically dependency injection, and how it can be implemented in an application.
Inversion of Controlin a Vue Application
View Slide
RahulKadyanCore Team MemberEx-organiser, VueBLR@znck0
1. What is it?2. Why do we need it?3. How do we use it?Inversion of Control
Growing Complexity
Shared State
What is Inversion of Control?
Program Control Flow
Dependencies
ChickenTikka Masala
ChickenTikka MasalaInversionof Control
Why do need we needInversion of Control?
Simple
Simple is to Reason
SOLID
Single responsibility principleOpen closed principleLiskov substitution principleInterface segregation principleDependency inversion principle
How do we useInversion of Control?
Wearealreadyusingit.
Propsdefinedependencies.
Props Vuex Provide/InjectLocal Global Contextual
UI Logic Business Logic
Composition Functions
General PurposeDependency InjectionContainer
Inversify.js
UI BusinessProps Vuex Provide/Inject Inversify.js
@znck0