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

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

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