Updated the routing.
This commit is contained in:
parent
3ba2c0941e
commit
fdc08da100
@ -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
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user