Angular 2 New Router - Routes not displaying in
Pretty new to Angular 2 and not fully up to speed on the new Router. I've followed the example from the Angular Documentation, and while I'm not getting errors, my components aren't displaying in the tag. Here's the router code: import { Routes, RouterModule } from '@angular/router'; import {HomeComponent} from './home.component'; import {FeaturesComponent} from './features.component'; const appRoutes: Routes = [ { path: '', component: HomeComponent },, { path: 'features', component: FeaturesComponent }, { path: '**', component: HomeComponent } ]; export const appRoutingProviders: any[] = [ ];
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.