Last active
December 29, 2015 11:28
-
-
Save lardissone/7663446 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.controller("KBHomeController", function ($scope, $http) { | |
$scope.loading = true; | |
$http.defaults.useXDomain = true; | |
// Esto en realidad lo hice siempre en el app.config, pero debería ser lo mismo: | |
delete $http.defaults.headers.common['X-Requested-With']; | |
// --- | |
$http.get('http://kbase.movistararg.com/api/movistar/question/top/5').success(function(data) { | |
$scope.technicalhelp=data; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment