Skip to content

Commit 9f27217

Browse files
jadsalhanitlancina
authored andcommitted
Removed redundant this.nav declaration (#6244)
`this.nav = nav` is already present due to the `public nav: NavController` declaration, having it in the constructor as well is redundant
1 parent c3fb051 commit 9f27217

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tooling/generators/page/page.tmpl.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,5 @@ import {Page, NavController} from 'ionic-angular';
1010
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html',
1111
})
1212
export class <%= jsClassName %> {
13-
constructor(public nav: NavController) {
14-
this.nav = nav;
15-
}
13+
constructor(public nav: NavController) {}
1614
}

0 commit comments

Comments
 (0)