From fc8bb7ab908c48611163b372ce8dd9c80948e29d Mon Sep 17 00:00:00 2001 From: Jad Salhani Date: Wed, 20 Apr 2016 17:53:17 +0300 Subject: [PATCH] Removed redundant this.nav declaration `this.nav = nav` is already present due to the `public nav: NavController` declaration, having it in the constructor as well is redundant --- tooling/generators/page/page.tmpl.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tooling/generators/page/page.tmpl.ts b/tooling/generators/page/page.tmpl.ts index 8fd02e70785..87e38a7118c 100644 --- a/tooling/generators/page/page.tmpl.ts +++ b/tooling/generators/page/page.tmpl.ts @@ -10,7 +10,5 @@ import {Page, NavController} from 'ionic-angular'; templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html', }) export class <%= jsClassName %> { - constructor(public nav: NavController) { - this.nav = nav; - } + constructor(public nav: NavController) {} }