Use angular way of window