redirecting to login

Sale Price:$333.00 Original Price:$999.00
sale

I come from the Asp. mega303 login Net MVC world where users trying to access a page they are not authorized are automatically redirected to the login page. login gagal 1 wifi id I am trying to reproduce this behavior on Angular I came accross the @CanActivate decorator, but it results in the component not rendering at all, no redirection

Quantity:
Add To Cart