Updated the routing.

This commit is contained in:
Joachim Nielandt 2018-03-28 14:13:51 +02:00
parent 3ba2c0941e
commit fdc08da100
2 changed files with 6 additions and 5 deletions

View File

@ -14,11 +14,12 @@ const appRoutes: Routes = [
{path: 'home', component: HomeComponent}, {path: 'home', component: HomeComponent},
{path: 'posts', component: PostsComponent}, {path: 'posts', component: PostsComponent},
{path: 'cv', component: CvComponent}, {path: 'cv', component: CvComponent},
{path: 'post/:id', component: FullpostComponent} {path: 'post/:id', component: FullpostComponent},
// {path: '', redirectTo: 'home', pathMatch: 'full'}, {path: '', redirectTo: 'home', pathMatch: 'full'},
// {path: '*', redirectTo: 'home', pathMatch: 'full'} // {path: '*', redirectTo: 'home', pathMatch: 'full'}
] ]
} },
{ path: '', redirectTo: 'nl', pathMatch: 'full' },
] ]
; ;
@ -26,7 +27,7 @@ const appRoutes: Routes = [
imports: [ imports: [
RouterModule.forRoot( RouterModule.forRoot(
appRoutes, appRoutes,
{enableTracing: false}) // <-- debugging purposes only ) {enableTracing: true}) // <-- debugging purposes only )
], ],
exports: [ exports: [
RouterModule RouterModule

View File

@ -22,7 +22,7 @@
#topname.active { #topname.active {
font-size: 100%; font-size: 100%;
color: black; color: black;
transition: font-size 0.40s ease, color 0.15s; transition: font-size 0.30s ease, color 0.15s;
} }
#topname #first { #topname #first {