Skip to content

Commit

Permalink
feat(template): add NavParams to page template
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Nov 28, 2016
1 parent 5526d70 commit 8587191
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/templates/page/ts.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { NavController, NavParams } from 'ionic-angular';

/*
Generated class for the $CLASSNAME page.
Expand All @@ -13,10 +13,10 @@ import { NavController } from 'ionic-angular';
})
export class $CLASSNAMEPage {

constructor(public navCtrl: NavController) {}
constructor(public navCtrl: NavController, public navParams: NavParams) {}

ionViewDidLoad() {
console.log('Hello $CLASSNAMEPage Page');
console.log('ionViewDidLoad $CLASSNAMEPage');
}

}

0 comments on commit 8587191

Please sign in to comment.