The problem - the routing works just fine for me. When I go to localhost/filecabinet, is goes to my filecabinet component. As it should. However, I've checked my code into source control. My team gets the code and goes to the same path and it takes them to the dashboard component. As if it can't find the route?
So I'm really at a loss. It's as if I haven't checked a file into source control that they need maybe? I really don't know. Any thoughts? Wish I had more to go on, but I'm confused?
Here's my app.routing.ts file:
import { Routes, RouterModule } from '@angular/router';
import { DashboardComponent } from './Dashboard/dashboard.component';
import { FileCabinetComponent } from './File-Cabinet/file-
cabinet.component';
import { FileUploadComponent } from './File-Cabinet/file-upload.component';
export const routing = RouterModule.forRoot([
{ path: '', component: DashboardComponent },
{ path: 'dashboard', component: DashboardComponent },
{ path: 'filecabinet', component: FileCabinetComponent },
{ path: 'filecabinet/add', component: FileUploadComponent },
{ path: 'filecabinet/edit/:id', component: FileUploadComponent },
{ path: '**', component: DashboardComponent },
]);
//], { enableTracing: true });