Updated the routing.
This commit is contained in:
parent
3ba2c0941e
commit
fdc08da100
@ -14,11 +14,12 @@ const appRoutes: Routes = [
|
||||
{path: 'home', component: HomeComponent},
|
||||
{path: 'posts', component: PostsComponent},
|
||||
{path: 'cv', component: CvComponent},
|
||||
{path: 'post/:id', component: FullpostComponent}
|
||||
// {path: '', redirectTo: 'home', pathMatch: 'full'},
|
||||
{path: 'post/:id', component: FullpostComponent},
|
||||
{path: '', redirectTo: 'home', pathMatch: 'full'},
|
||||
// {path: '*', redirectTo: 'home', pathMatch: 'full'}
|
||||
]
|
||||
}
|
||||
},
|
||||
{ path: '', redirectTo: 'nl', pathMatch: 'full' },
|
||||
]
|
||||
;
|
||||
|
||||
@ -26,7 +27,7 @@ const appRoutes: Routes = [
|
||||
imports: [
|
||||
RouterModule.forRoot(
|
||||
appRoutes,
|
||||
{enableTracing: false}) // <-- debugging purposes only )
|
||||
{enableTracing: true}) // <-- debugging purposes only )
|
||||
],
|
||||
exports: [
|
||||
RouterModule
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
#topname.active {
|
||||
font-size: 100%;
|
||||
color: black;
|
||||
transition: font-size 0.40s ease, color 0.15s;
|
||||
transition: font-size 0.30s ease, color 0.15s;
|
||||
}
|
||||
|
||||
#topname #first {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user