Hi,
Code: Select all
Is there any way in Angular Js of listening an event when page is resized, loaded or shown? I need to get the window(page) width and height when it's resized.
Thank you
Hi,
Code: Select all
Is there any way in Angular Js of listening an event when page is resized, loaded or shown? I need to get the window(page) width and height when it's resized.
Thank you
Hello,
You can add a watcher to the $scope variable to "listen" it's changes. That function will be triggered if that variable changes
Hello, Sergiy, thank you for your fast return. Do you have a small sample showing how to do this?
Thank you
We don't have such example, because this is default AngularJS functionality. Please look at this link how to use watchers here: https://docs.angularjs.org/api/ng/typ...