Skip to content

Commit

Permalink
Removed redundant this.nav declaration (#6244)
Browse files Browse the repository at this point in the history
`this.nav = nav` is already present due to the `public nav: NavController` declaration, having it in the constructor as well is redundant
  • Loading branch information
jadsalhani authored and tlancina committed Apr 20, 2016
1 parent c3fb051 commit 9f27217
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tooling/generators/page/page.tmpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
}

0 comments on commit 9f27217

Please sign in to comment.