Skip to content

prodMode attribute in the @App decorator#5449

Merged
adamdbradley merged 1 commit into
ionic-team:2.0from
eriktufvesson:EnableProdMode
Feb 14, 2016
Merged

prodMode attribute in the @App decorator#5449
adamdbradley merged 1 commit into
ionic-team:2.0from
eriktufvesson:EnableProdMode

Conversation

@eriktufvesson
Copy link
Copy Markdown
Contributor

I have added a prodMode attribute to the @app decorator to be able to enable the Angular2 production mode.

@App({
  template: '<ion-nav [root]="rootPage"></ion-nav>',
  config: {},
  prodMode: [true/false]
})

if true => enableProdMode is called before bootstrapping the app

adamdbradley added a commit that referenced this pull request Feb 14, 2016
feat(prodMode): enableProdMode from @app decorator
@adamdbradley adamdbradley merged commit 78b1a0c into ionic-team:2.0 Feb 14, 2016
@adamdbradley
Copy link
Copy Markdown
Contributor

Great idea! We'll give that a shot and see how the community likes it, thanks

@eriktufvesson eriktufvesson deleted the EnableProdMode branch February 17, 2016 06:48
@omeid omeid mentioned this pull request Apr 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants