From 85871914dcd113be5f1ec5fcb16121cb82bf949a Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 28 Nov 2016 12:32:21 -0600 Subject: [PATCH] feat(template): add NavParams to page template --- scripts/templates/page/ts.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/templates/page/ts.tmpl b/scripts/templates/page/ts.tmpl index da3d73ad272..911a95c7f70 100644 --- a/scripts/templates/page/ts.tmpl +++ b/scripts/templates/page/ts.tmpl @@ -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. @@ -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'); } }