Gain access to the angular ui router at runtime