Fix(generate): Adjust spacing in tabs template js and html

This commit is contained in:
jbavari
2015-10-30 16:50:55 -06:00
parent 9205f400eb
commit c0a14a682f
2 changed files with 4 additions and 10 deletions

View File

@ -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>

View File

@ -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 %>;
<% }); %> <% }); %>
} }