mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
Fix(generate): Adjust spacing in tabs template js and html
This commit is contained in:
@ -1,6 +1,3 @@
|
||||
<ion-tabs>
|
||||
<% _.forEach(tabs, function(tab) { %>
|
||||
<ion-tab tab-title="<%= tab.name %>" tab-icon="globe" [root]="<%= tab.javascriptClassName %>">
|
||||
</ion-tab>
|
||||
<% }); %>
|
||||
<ion-tabs><% _.forEach(tabs, function(tab) { %>
|
||||
<ion-tab tab-title="<%= tab.name %>" tab-icon="globe" [root]="<%= tab.javascriptClassName %>"></ion-tab><% }); %>
|
||||
</ion-tabs>
|
||||
|
@ -1,17 +1,14 @@
|
||||
import {NavController, Page} from 'ionic/ionic';
|
||||
|
||||
<% _.forEach(tabs, function(tab) { %>
|
||||
import {<%= tab.javascriptClassName %>} from '../<%= tab.fileAndClassName %>/<%= tab.fileAndClassName %>';
|
||||
<% _.forEach(tabs, function(tab) { %>import {<%= tab.javascriptClassName %>} from '../<%= tab.fileAndClassName %>/<%= tab.fileAndClassName %>';
|
||||
<% }); %>
|
||||
|
||||
@Page({
|
||||
templateUrl: 'app/<%= fileAndClassName %>/<%= fileAndClassName %>.html'
|
||||
})
|
||||
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.javascriptClassName %> = <%= tab.javascriptClassName %>;
|
||||
<% }); %>
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user