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>
|
<ion-tabs><% _.forEach(tabs, function(tab) { %>
|
||||||
<% _.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.javascriptClassName %>">
|
|
||||||
</ion-tab>
|
|
||||||
<% }); %>
|
|
||||||
</ion-tabs>
|
</ion-tabs>
|
||||||
|
@ -1,17 +1,14 @@
|
|||||||
import {NavController, Page} from 'ionic/ionic';
|
import {NavController, Page} from 'ionic/ionic';
|
||||||
|
|
||||||
<% _.forEach(tabs, function(tab) { %>
|
<% _.forEach(tabs, function(tab) { %>import {<%= tab.javascriptClassName %>} from '../<%= tab.fileAndClassName %>/<%= tab.fileAndClassName %>';
|
||||||
import {<%= tab.javascriptClassName %>} from '../<%= tab.fileAndClassName %>/<%= tab.fileAndClassName %>';
|
|
||||||
<% }); %>
|
<% }); %>
|
||||||
|
|
||||||
@Page({
|
@Page({
|
||||||
templateUrl: 'app/<%= fileAndClassName %>/<%= fileAndClassName %>.html'
|
templateUrl: 'app/<%= fileAndClassName %>/<%= fileAndClassName %>.html'
|
||||||
})
|
})
|
||||||
export class <%= javascriptClassName %> {
|
export class <%= javascriptClassName %> {
|
||||||
constructor(nav: NavController) {
|
constructor(nav: NavController) {
|
||||||
// set the root pages for each tab
|
// set the root pages for each tab
|
||||||
<% _.forEach(tabs, function(tab) { %>
|
<% _.forEach(tabs, function(tab) { %>this.<%= tab.javascriptClassName %> = <%= tab.javascriptClassName %>;
|
||||||
this.<%= tab.javascriptClassName %> = <%= tab.javascriptClassName %>;
|
|
||||||
<% }); %>
|
<% }); %>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user