How get Hashmap from rest and put it in $result AngularJs.
I tried:
angular.module('myApp')
.controller('EntitesController', function ($scope, $stateParams, Entites) {
$scope.all = {};
$scope.load = function (id) {
Entites.get({id: id}, function (result) {
$scope.all = result;
});
};
$scope.load($stateParams.id);
});
But in all - nothing. I`m sure thar rest give Hasmap but i have no idea how put this hashmap in result.
Please help