mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Merge pull request #792 from troyanskiy/patch-1
feat(bootstrap): bootstrap custom providers
This commit is contained in:
@@ -49,8 +49,11 @@ export function App(args={}) {
|
||||
|
||||
// redefine with added annotations
|
||||
Reflect.defineMetadata('annotations', annotations, cls);
|
||||
|
||||
// define array of bootstrap providers
|
||||
let providers = ionicProviders(args).concat(args.providers || []);
|
||||
|
||||
bootstrap(cls, ionicProviders(args)).then(appRef => {
|
||||
bootstrap(cls, providers).then(appRef => {
|
||||
appRef.injector.get(TapClick);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user