Merge pull request #792 from troyanskiy/patch-1

feat(bootstrap): bootstrap custom providers
This commit is contained in:
Adam Bradley
2015-12-22 09:19:17 -06:00

View File

@@ -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);
});