Default of routing url is wrong in angular?

Forums AngularDefault of routing url is wrong in angular?
Staff asked 2 years ago

How can I fix this error with custom routing?

Answers (1)

Add Answer
Faisal Pathan Marked As Accepted
Staff answered 2 years ago

try this

{ path: '**', component: YOUR_DEFAULT_COMPONENT}

This will redirect to the default component if the path does not exist.

Subscribe

Select Categories