php - posting data to cross server in angular 2 and wordpress -


i trying post data php page angular2 . generate correct url when use ajax call same url not hit php page.

let url = 'http://localhost/deals//wp-admin/admin-ajax.php?action=create&deal='+deal+'&price='+price;          console.log(url); // url web api         var headers = new headers();         headers.append("content-type", "application/jsonp");         return this._http.get(url, headers )                     .map(res => res.json() ); 


Comments

Popular posts from this blog

c# SetCompatibleTextRenderingDefault must be called before the first -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -

c++ - Fill runtime data at compile time with templates -