Angular · Middle · Question 30 of 75

How does canMatch differ from canActivate?

Explanation

With canMatch you can have two routes with the same path for different roles (/dashboard for admins and users), and an unauthorized user doesn't download the admin chunk.

Further reading

Problem with a question

Angular · Middle · question 30

Test yourself

Take the Angular · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz