Use angular ui router route change event instead