0

Is it possible navigate directly to Angular routes with path parameters through the browser?

I want to access my chart component directly from the browser using link like this "http://localhost:8080/dmport/chart/787698cb". When i tried to do that i get 404 error

HTTP Status 404 – Not Found
Type Status Report
Message The requested resource [/dmport/chart/787698cb] is not available
2
  • ie: In my app-routing.module.ts, I have routes like below: const routes: Routes = [ { path: '', component: HomeComponent }, { path: 'chart/:uid', component: ChartComponent }, { path: 'accomodation', component: AccomodationComponent }, { path: 'offers', component: OffersComponent } Commented Sep 5, 2024 at 14:31
  • Yes it is possible, but you need to configure your web server accordingly. Commented Sep 5, 2024 at 14:32

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.