UNPKG

ionic-framework

Version:

The ionic-framework package comes with both Javascript and Sass frontend dependencies, located in the root of the package, and a Node API, located in `tooling/`.

16 lines (13 loc) 474 B
import {NavController, Page} from 'ionic/ionic'; <% _.forEach(tabs, function(tab) { %>import {<%= tab.jsClassName %>} from '../../<%= tab.fileName %>/<%= tab.fileName %>'; <% }); %> @Page({ templateUrl: 'app/<%= fileName %>/<%= fileName %>.html' }) export class <%= jsClassName %> { constructor(nav: NavController) { // set the root pages for each tab <% _.forEach(tabs, function(tab) { %>this.<%= tab.fileName %> = <%= tab.jsClassName %>; <% }); %> } }