var myApp = angular.module('myApp',[]);
myApp.controller('profileCtrl', ['$scope', function($scope){
var req="https://api.vk.com/method/users.get?user_ids=1"
$.ajax({
url : req,
type : "GET",
dataType : "jsonp",
success : function(msg){
console.log(msg.response[0].first_name);
$scope.resp = msg.response[0].first_name;
}
});
}]);
<script>
var app = angular.module('app',[]);
app.controller("profileCtrl", function(){
var req="https://api.vk.com/method/users.get?user_ids=1"
$.ajax({
url : req,
type : "GET",
dataType : "jsonp",
success : function(msg){
//console.log(msg.response[0]);
$scope.msg = msg.response[0]
}
});
})
</script>