Route in ionic2


#1

When i tried to load the route in main.ts file ,html is not showing .
Code is:

     import {Component} from '@angular/core';

import {DbContent} from ‘./service/dbContent’;
import {Platform, ionicBootstrap,Storage,LocalStorage,SqlStorage} from ‘ionic-angular’;
import {StatusBar} from ‘ionic-native’;
import {HomePage} from ‘./pages/home/home’;
import { provide } from ‘@angular/core’;
//import { Location } from ‘@angular/common’;
import {Routes,ROUTER_PROVIDERS,ROUTER_DIRECTIVES} from ‘@angular/router’;
import {RouteComponent} from ‘./pages/route/route’;

@Component({
template: ‘<ion-nav [root]=“rootPage”>’,
providers: [DbContent,ROUTER_PROVIDERS],
directives:[ROUTER_DIRECTIVES]
})

@Routes([
{ path: ‘/2’, component: RouteComponent }
])

export class MyApp {
rootPage: any = HomePage;

constructor(platform: Platform, dbContent:DbContent) {

platform.ready().then(() => {
 

dbContent.databaseProperties();

	StatusBar.styleDefault();
  });	

}

}

ionicBootstrap(MyApp);