Use angular to handle window resize events