app-routing.module.ts 674 Bytes
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { EspectaculosComponent } from './espectaculos/espectaculos.component';
import { InformacionComponent } from './informacion/informacion.component';
import { MainComponent } from './main/main.component';

const routes: Routes = [
	{ path: '', component : MainComponent },
	{ path: 'espectaculos', component: EspectaculosComponent },
	{ path: 'informacion/:id', component: InformacionComponent }
];
/* { path: '**', component: PageNotFoundComponent } */

@NgModule({
	imports: [RouterModule.forRoot(routes)],
	exports: [RouterModule]
})
export class AppRoutingModule { }