I think I have followed directions to get routing in rc3 working. It works well in rc1. I create the app.routes, the app.providers, and it looks like this:
main.ts:
import {bootstrap} from '@angular/platform-browser-dynamic'; import {APP_ROUTER_PROVIDER} from './app.routes'; import {HTTP_PROVIDERS} from '@angular/http'; import {AppComponent} from './app.component'; bootstrap(AppComponent, [APP_ROUTER_PROVIDER, HTTP_PROVIDERS]);
You need a default route
export const HomeRoutes: RouterConfig = [ { path: '', redirectTo: '/home', terminal: true}, { path: 'home', component: HomeComponent } ];
1.4m articles
1.4m replys
5 comments
57.0k users