Skip to content

Commit 8587191

Browse files
committed
feat(template): add NavParams to page template
1 parent 5526d70 commit 8587191

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/templates/page/ts.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component } from '@angular/core';
2-
import { NavController } from 'ionic-angular';
2+
import { NavController, NavParams } from 'ionic-angular';
33

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

16-
constructor(public navCtrl: NavController) {}
16+
constructor(public navCtrl: NavController, public navParams: NavParams) {}
1717

1818
ionViewDidLoad() {
19-
console.log('Hello $CLASSNAMEPage Page');
19+
console.log('ionViewDidLoad $CLASSNAMEPage');
2020
}
2121

2222
}

0 commit comments

Comments
 (0)