You may make the canActivate method in a CanActivate guard return Promise<Boolean> instead of Boolean for handling the asynchronous stuff. Honestly however, I don't see why you would not just use a synchronous old school XHR call in the guard as everything has to wait on the guard anyway.
No comments:
Post a Comment