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>
<% _.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>

View File

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