I have an existing project developed with Angular 4. I need to control the access to a particular route based on …