Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 9be46a7

Browse files
SQUASH ME: feat($http): specify the JSONP callback via the callbackParam config value
1 parent 308f3bf commit 9be46a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/http.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -875,11 +875,11 @@ function $HttpProvider() {
875875
<button id="samplegetbtn" ng-click="updateModel('GET', 'http-hello.html')">Sample GET</button>
876876
<button id="samplejsonpbtn"
877877
ng-click="updateModel('JSONP',
878-
'https://angularjs.org/greet.php?callback=JSON_CALLBACK&name=Super%20Hero')">
878+
'https://angularjs.org/greet.php?name=Super%20Hero')">
879879
Sample JSONP
880880
</button>
881881
<button id="invalidjsonpbtn"
882-
ng-click="updateModel('JSONP', 'https://angularjs.org/doesntexist&callback=JSON_CALLBACK')">
882+
ng-click="updateModel('JSONP', 'https://angularjs.org/doesntexist')">
883883
Invalid JSONP
884884
</button>
885885
<pre>http status code: {{status}}</pre>

0 commit comments

Comments
 (0)