Files
ionic-framework/tooling/generators/tabs/tabs.tmpl.ts
2016-08-04 13:50:15 -05:00

17 lines
550 B
TypeScript

import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
<% _.forEach(tabs, function(tab) { %>import { <%= tab.jsClassName %> } from '../<%= tab.fileName %>/<%= tab.fileName %>';
<% }); %>
@Component({
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html'
})
export class <%= jsClassName %> {
constructor(public navCtrl: NavController) {
// set the root pages for each tab
<% _.forEach(tabs, function(tab, i) { %>this.tab<%= ++i %>Root = <%= tab.jsClassName %>;
<% }); %>
}
}