You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
1.4 KiB

import { NgModule } from '@angular/core'
import { Routes, RouterModule } from '@angular/router'
import { AppLayoutComponent } from './app-layout/app-layout.component'
import { AboutComponent } from './about/about.component'
import { PortfolioComponent } from './portfolio/portfolio.component'
import { ExhibitionsComponent } from './exhibitions/exhibitions.component'
import { InstallationsComponent } from './installations/installations.component'
import { EntertainmentComponent } from './entertainment/entertainment.component'
import { PerformancesComponent } from './performances/performances.component'
import { WorkshopsComponent } from './workshops/workshops.component'
const routes: Routes = [
{
path: '',
component: AppLayoutComponent,
children: [
{ path: '', redirectTo: '/portfolio', pathMatch: 'full' },
{ path: 'portfolio', component: PortfolioComponent },
{ path: 'about', component: AboutComponent },
{ path: 'exhibitions', component: ExhibitionsComponent },
{ path: 'installations', component: InstallationsComponent },
{ path: 'entertainment', component: EntertainmentComponent },
{ path: 'performances', component: PerformancesComponent },
{ path: 'workshops', component: WorkshopsComponent }
]
}
]
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }