function CountryController ($scope) {
$scope.countries = [];
VK.Api.call("database.getCountries", {code: "RU,UA,BY,KZ"}, function(r) {
var countries_ar = [];
for(var i = 0; i < r.response.length; i++) {
countries_ar.push({title: r.response[i].title});
}
$scope.$apply(function () {
$scope.countries = countries_ar;
});
});
}