import {Component, onInit} from 'angular2/angular2'; import {IonicView, IonicConfig, IonicRouter} from 'ionic/ionic'; import {FirstPage} from './pages/first-page' @Component({ selector: 'ion-app' }) @IonicView({ template: '' }) class MyApp {} export function main(ionicBootstrap) { var myRouter = new IonicRouter({ 'FirstPage': { 'path': '/firstpage', 'module': 'dist/examples/nav/basic/pages/first-page', }, 'SecondPage': { 'path': '/secondpage', 'module': 'dist/examples/nav/basic/pages/second-page', }, 'ThirdPage': { 'path': '/thirdpage', 'module': 'dist/examples/nav/basic/pages/third-page', }, }); myRouter.otherwise('FirstPage'); let myConfig = new IonicConfig(); ionicBootstrap(MyApp, myConfig, myRouter); }