What is the difference between $location.path() and $http.get() in AngularJS ? Both seem to be working the same way in my application (I'm using the calls in a function of my application's controller to respond to a form submission) , but I feel like I'm missing something.
Any help would appreciated. Thanks.
window.location = YOUR_URLVS.var req = new XMLHttpRequest(); req.open("GET", YOUR_URL, true); req.send();Redirect Vs. Asynchronous Request For Data