We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b85d7aa + fa1c75f commit 78b1a0cCopy full SHA for 78b1a0c
1 file changed
ionic/decorators/app.ts
@@ -1,4 +1,4 @@
1
-import {Component} from 'angular2/core';
+import {Component, enableProdMode} from 'angular2/core';
2
import {bootstrap} from 'angular2/platform/browser';
3
import {TapClick} from '../components/tap-click/tap-click';
4
import {ionicProviders} from '../config/bootstrap';
@@ -57,6 +57,10 @@ export function App(args: any={}) {
57
// define array of bootstrap providers
58
let providers = ionicProviders(args).concat(args.providers || []);
59
60
+ if (args.prodMode) {
61
+ enableProdMode();
62
+ }
63
+
64
bootstrap(cls, providers).then(appRef => {
65
appRef.injector.get(TapClick);
66
});
0 commit comments