Fix(generate): Update tabs template to use lowercase variable names in component

This commit is contained in:
jbavari
2015-10-30 17:44:57 -06:00
parent c0a14a682f
commit 5c0bc6ebc3
2 changed files with 2 additions and 2 deletions

View File

@@ -1,3 +1,3 @@
<ion-tabs><% _.forEach(tabs, function(tab) { %>
<ion-tab tab-title="<%= tab.name %>" tab-icon="globe" [root]="<%= tab.javascriptClassName %>"></ion-tab><% }); %>
<ion-tab tab-title="<%= tab.name %>" tab-icon="globe" [root]="<%= tab.fileAndClassName %>"></ion-tab><% }); %>
</ion-tabs>

View File

@@ -8,7 +8,7 @@ import {NavController, Page} from 'ionic/ionic';
export class <%= javascriptClassName %> {
constructor(nav: NavController) {
// set the root pages for each tab
<% _.forEach(tabs, function(tab) { %>this.<%= tab.javascriptClassName %> = <%= tab.javascriptClassName %>;
<% _.forEach(tabs, function(tab) { %>this.<%= tab.fileAndClassName %> = <%= tab.javascriptClassName %>;
<% }); %>
}