Last active
July 16, 2019 11:42
-
-
Save roNn23/111fc6c1ff8f58e0b24d912322edb2ad to your computer and use it in GitHub Desktop.
From https://stackoverflow.com/questions/21626357/angularjs-event-on-window-innerwidth-size-change #angularjs
This file contains hidden or 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
/** | |
* Window resize event handling | |
*/ | |
angular.element($window).on('resize', function () { | |
console.log($window.innerWidth); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment