mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
19 lines
540 B
JavaScript
19 lines
540 B
JavaScript
import {NavController, Page} from 'ionic-angular';
|
|
<% _.forEach(tabs, function(tab) { %>import {<%= tab.jsClassName %>} from '../<%= tab.fileName %>/<%= tab.fileName %>';
|
|
<% }); %>
|
|
|
|
@Page({
|
|
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 %>;
|
|
<% }); %>
|
|
}
|
|
}
|