mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
15 lines
490 B
JavaScript
15 lines
490 B
JavaScript
import {NavController, Page} from 'ionic/ionic';
|
|
<% _.forEach(tabs, function(tab) { %>import {<%= tab.jsClassName %>} from '../<%= tab.fileName %>/<%= tab.fileName %>';
|
|
<% }); %>
|
|
|
|
@Page({
|
|
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html'
|
|
})
|
|
export class <%= jsClassName %> {
|
|
constructor(nav: NavController) {
|
|
// set the root pages for each tab
|
|
<% _.forEach(tabs, function(tab, i) { %>this.tab<%= ++i %>Root = <%= tab.jsClassName %>;
|
|
<% }); %>
|
|
}
|
|
}
|