How to make http post call inside route guard in angular7?
问题 I have an Angular 7 app in which I have a post call and on the basis of that post call response I want to make guard active/inactive. I have my route guard like this canActivate = (_router: ActivatedRouteSnapshot): boolean => { console.log('in link expiry guard') let userEmail = _router.paramMap.get('email'); let isAllow; console.log('params : ', userEmail) userEmail = this._utilityService.decryptMsgByCryptoJs(userEmail); console.log('user email : ', userEmail) this._dataService.post(this.