Skip to content

Instantly share code, notes, and snippets.

@sivabudh
Created March 24, 2016 08:35
Show Gist options
  • Save sivabudh/a7f6a6111947651225d5 to your computer and use it in GitHub Desktop.
Save sivabudh/a7f6a6111947651225d5 to your computer and use it in GitHub Desktop.
// This works
$http.jsonp('https://10.1.10.161/customer/mns/ajax.php?cuscode=bigc&type=circuit&callback=JSON_CALLBACK').then(function(json) {
console.log("Yay! we can now connect!");
resolve(json.data);
}, function(err) {
reject(err);
console.log('Error get user', err);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment