November 2019
Beginner
804 pages
20h 1m
English
Now, let's take a look at an example of leveraging TypeScript support.
Let's assume that we have the following component tree:

If we want to define a dependency that can be injected into the UserSettings component, then we can introduce a provider for it in any of its ancestors: Settings, Content, or App. Providers that are defined at the App level can be used anywhere in the component tree.
In the following example, we'll simply make a username string available for injection, but we could ...
Read now
Unlock full access