I have Angular 6 app. In this need to create URL for each User.
I have created this URL in this format. This is working fine.
http://localhost:4200/profile/User1
I did this using this code {path: 'profile/:value}'.
Where User1 is dynamic. It can be User2,User3, etc.
But I need URL in this format.
http://localhost:4200/user1-profile/
I did not any solution to create URL in this format.
If this was in php, I can do that using htaccess like this /([^/]*)-profile/. But I don't know how to do same in Angular 6.