hello,
...
const routes: Routes = [
   {
      path: ' ',
      redirectTo: '/PartDetails' // forward slash at beginning for absolute
path and no slash for relative path
   },
   {
       path: 'PartDetails',
      component: PartDetailsComponent // must have a component to render
when this path is reached...
   }
];
...

On Fri, Dec 20, 2019 at 4:05 PM ahmed elbarbary <[email protected]>
wrote:

> thank you for repl
> PartDetails is name of route
> PartDetails is not component
> it is name
> so please
> How to redirect name is not component
> i try add
> { path: '' , redirectTo: '/PartDetails'}
> it not working
> How to solve this problem
> Are angular not support routing to alias name
> or must use component name
> please help me
>
> --
> You received this message because you are subscribed to the Google Groups
> "Angular and AngularJS discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/angular/0a3ea202-a993-43d4-aa95-a63a6eee8c7c%40googlegroups.com
> <https://groups.google.com/d/msgid/angular/0a3ea202-a993-43d4-aa95-a63a6eee8c7c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/CANmMz6TEOP6YtF6vUECh2ZkZx8vpZorzsYicRHXm19PNp_wtTA%40mail.gmail.com.

Reply via email to