import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { AuthGuard } from '../_guards/auth.guard'; import { DataIntegrationComponent } from '../data-integration/data-Integration.component'; const routes: Routes = [ { path: 'data-integration', component: DataIntegrationComponent, canActivate: [AuthGuard] }, ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class DataIntegrationRoutingModule { }