Skip to content

Commit

Permalink
Merge pull request MvvmCross#2909 from robvanuden/patch-1
Browse files Browse the repository at this point in the history
Small fixes in documentation
  • Loading branch information
martijn00 authored May 28, 2018
2 parents 653a22a + ab40a46 commit 8a957f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/_documentation/tutorials/tipcalc/the-core-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ We won't go into depth here about what IoC - Inversion of Control - is.

Instead, we will just say that:

- Within each MvvmCross application, there is a very special object, whici is a `singleton`.
- Within each MvvmCross application, there is a very special object, which is a `singleton`.
- This `singleton` lives within the `Mvx` static class.
- The application startup code can use the `Mvx.Register...` methods to let `Mvx` know how to resolve certain requests during the lifetime of the app.
- After the registration has been done, then when any code asks for an `interface` implementation, it can do that by using the `Mvx.Resolve` methods.
Expand All @@ -324,7 +324,7 @@ One common pattern the app is also using is 'constructor injection':
- Our `TipViewModel` uses this pattern.
- It presents a constructor like: `public TipViewModel(ICalculationService calculationService)`.
- When the app is running a part of the MvvmCross framework called the `ViewModelLocator` is used to find and create ViewModels.
- when a `TipViewModel` is needed, the `ViewModelLocator` uses a call to `Mvx.IocConstruct` to create one.
- When a `TipViewModel` is needed, the `ViewModelLocator` uses a call to `Mvx.IocConstruct` to create one.
- This `Mvx.IocConstruct` call creates the `TipViewModel` using the `ICalculationService` implementation that it finds using `Mvx.Resolve`

This is obviously only a very brief introduction.
Expand Down

0 comments on commit 8a957f5

Please sign in to comment.