$http.post("\<domain\>/user-registration/", {username: username, password: password}) .then(function (data) { // Do success actions here });