Search Posts

Category: xmlhttprequest

error while perfomin get operation using XHRHttprequest in angularjs

I am trying retrieve data from a web service. when i try to do it via ARC i am getting the following error if USE XHR is enabled then i am getting data in the form of JSON. Is there any way to do it programatically using angular2? my final output should be in the form of object. var xhr = new XMLHttpRequest(); xhr.timeout = 2000; xhr.onreadystatechange = function(e){ if (xhr.readyState === 4){ if (xhr.status […]