app-routing.module modificato per lista-eventi.component

app-routing.module modificato per lista-eventi.component

import { NgModule } from ‘@angular/core’;
import { Routes, RouterModule } from ‘@angular/router’;
import {ListaEventiComponent} from ‘./components/lista-eventi/lista-eventi.component’;

const routes: Routes = [
  {
<strong><span style="color: #ff0000;">    path: 'lista-eventi',</span></strong>
<strong><span style="color: #ff0000;">    component: ListaEventiComponent,</span></strong>
<strong><span style="color: #ff0000;">    data: { title: 'Lista degli Eventi' }</span></strong>
  },
  {
<strong><span style="color: #ff0000;">    path: '',</span></strong>
<strong><span style="color: #ff0000;">    redirectTo: '/lista-eventi',</span></strong>
<strong><span style="color: #ff0000;">    pathMatch: 'full'</span></strong>
  }
];

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

No Comments

Sorry, the comment form is closed at this time.