rootInjector function
Create a root application Injector.
Requires userInjector
to provide app-level services or overrides:
main() {
var injector = rootInjector((parent) {
return Injector.map({ /* ... */ }, parent);
});
}
WARNING: This API is not considered part of the stable API.
Implementation
@experimental
Injector rootInjector(InjectorFactory userInjector) {
return appInjector(userInjector);
}