嗨我需要在我的检测中检测到溃败已经激活,但无法找到如何做到这一点。
service`
canActivate() {
this.userLogedin = localStorage.getItem('AUTHENTICATION');
//I need check here if rout has canActivate
if (this.userLogedin === 'false') {
this.router.navigateByUrl('');
return false;
}else {
return true;
}
}