Created
May 6, 2020 12:59
-
-
Save cesalberca/0ba99edc453684748a55940555ec66f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (isProtected) { | |
/** | |
* We have to execute this code outside of the JavaScript's main context | |
* in order to let Angular finish with the closing animation | |
*/ | |
setTimeout(() => { | |
this.router.navigate([paths.root]) | |
}, 0) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment