Created
October 30, 2018 13:40
-
-
Save 4gray/d6e34ede5d31c4c62f65261f6371a36a to your computer and use it in GitHub Desktop.
Angular window resize listener
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
@HostListener('window:resize', ['$event']) | |
onResize(event) { | |
// magic here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment