Follow the code
angular.module('App', [])
.controller('InstaController',function($scope, $http){
$scope.busca;
$scope.buscar = function(){
$scope.getInsta($scope.busca);
}
$scope.getInsta = function(tag){
var url = 'https://api.instagram.com/v1/media/popular?client_id=6f6a0f971acf482a8dc4f9e66c2ec8b9';
if(tag !== undefined){
url = "https://api.instagram.com/v1/tags/"+tag+"/media/recent?client_id=6f6a0f971acf482a8dc4f9e66c2ec8b9"
}
$http.get(url)
.success(function(data){
$scope.inst = data.data;
console.log($scope.inst);
});
}
$scope.getInsta();
});
Follow the error XMLHttpRequest can not load link . In 'Access-Control-Allow-Origin' header is present on the requested resource.
Note: I am using Compiling in Build .Apk It works normal but in Browser.
App link on the web allandasilva.com.br/App /
"I solved" with a Chrome plugin
How to Solve Without Using Outsourcing