Can you please send me a example of routerGaurd. It would be better for me.
Thanks & Regards Jainendra Rai On Sun, Aug 25, 2019, 11:11 AM Sander Elias <[email protected]> wrote: > Hi Jaint, > > You can set the title from the components you route to. > using the setTitle > <https://angular.io/guide/set-document-title#use-the-title-service> > service makes that a lot easier. > > If you insist on doing it from the router, you can use a route guard to > handle this. > > Regards > Sander > > -- > 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/9fbabbb6-e90f-4abf-a83d-1455e59d9418%40googlegroups.com > <https://groups.google.com/d/msgid/angular/9fbabbb6-e90f-4abf-a83d-1455e59d9418%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/CADn0swmB24twgPV4u9f4VB6UHo4uhUBDwsjo5JL%3DrL-OQdpKLQ%40mail.gmail.com.
