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

Commit 5027b09

Browse files
committed
fixup! feat($http): remove deprecated callback methods: success()/error()
1 parent c5e0890 commit 5027b09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/sce.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,8 @@ function $SceDelegateProvider() {
612612
* .controller('AppController', ['$http', '$templateCache', '$sce',
613613
* function AppController($http, $templateCache, $sce) {
614614
* var self = this;
615-
* $http.get('test_data.json', {cache: $templateCache}).success(function(userComments) {
616-
* self.userComments = userComments;
615+
* $http.get('test_data.json', {cache: $templateCache}).then(function(response) {
616+
* self.userComments = response.data;
617617
* });
618618
* self.explicitlyTrustedHtml = $sce.trustAsHtml(
619619
* '<span onmouseover="this.textContent=&quot;Explicitly trusted HTML bypasses ' +

0 commit comments

Comments
 (0)