I have a Url, 'localhost/app/main/A/B', I want to change url to 'localhost/B'. Is it possible? And How I can?, I place some lines in root-routing like this.
Yes, this is correct. But be sure that you have removed the route definiton from main-routing.module.ts.
I did it and get this
Seem like, I have to import all of the module and component to Root Module
It seems like that. I checked again and couldn't find a better way to do it in Angular.
I truly want to modify the URL more friendly for SEO, If you have any clue, please let me know.
@GSOFT sorry, I don't have any other suggestion.