EvalAI-ngx icon indicating copy to clipboard operation
EvalAI-ngx copied to clipboard

Use of Route Guards as opposed to in-component Redirects

Open jayaike opened this issue 5 years ago • 2 comments

I'm submitting a

(Check one with "x" from given options)

  • [ ] Bug report
  • [x] Feature request

Current behavior

The project allows users to navigate to protected routes and then Redirects to an appropriate route based on authentication status. This method causes this bandicam-2020-01-15-07-01-01-050_Trim

As we can see it shows the user the "protected route before redirect"

Expected behavior

The project should make use of Route Guards using CanActivate. This way we will follow the DRY principle of coding

I have started working on this

jayaike avatar Jan 14 '20 14:01 jayaike

I will like to work on the issue along with the Lazy Loading Modules issue I created @vkartik97 @RishabhJain2018 @Ram81 @yashdusing @Sanji515

jayaike avatar Jan 14 '20 14:01 jayaike

sure! @nsjcorps , go ahead

Sanji515 avatar Jan 19 '20 13:01 Sanji515