Team insights: $location. VS window.location() in Angular Applications
So, as with most things related to Angular, if there is an option to use Angular, or another (JQuery, JavaScript, Some-Other-Library-That-Is-Not-Angular) resource, we recommending using Angular.