mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Fix(generate): Update tabs template to use lowercase variable names in component
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 %>;
|
||||
<% }); %>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user