mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
20 lines
586 B
JavaScript
20 lines
586 B
JavaScript
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 %> {
|
|
static get parameters() {
|
|
return [[NavController]];
|
|
}
|
|
|
|
constructor(nav) {
|
|
// set the root pages for each tab
|
|
<% _.forEach(tabs, function(tab, i) { %>this.tab<%= ++i %>Root = <%= tab.jsClassName %>;
|
|
<% }); %>
|
|
}
|
|
}
|