Thanks Sander.

My requirement is - should redirect to the page (mentioned in action attr) 
with cross domain POST method.

I'm not sure how $location service could be used for cross domain POST 
redirection.

Please clarify.

Thanks in Advance.


On Thursday, March 3, 2016 at 11:46:46 AM UTC+5:30, Sander Elias wrote:
>
> Hi Sadha,
>
> You are trying to shoehorn conventional html-forms into a frameworks that 
> as a large part of its design is to avoid this.
>
> If you want to do this in a modern Spa like way you do something in your 
> code like:
>
> $http.post("https://otherdomain.com/processRequest",{"ORDER_ID":
> "645783663", "CUST_ID": "makeb42499"}
>    .then(function (result) {
>       console.log(result, result.data)
>    }); 
>
>
> However, this will not redirect you to the new page, if that is your goal, 
> use the $location service. 
>
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to