title: Get id using angular from HAL representation
body: <p>How can i get any object id from Hal representation? </p>
  
  <p>Exactly i want to get this from specific user from allUser list. There is example:</p>
  
  <pre><code>{
    "_embedded" : {
      "users" : [ {
        "login" : "user1",
        "firstName" : "Bolek",
        "lastName" : "Kowal",
        "email" : null,
        "password" : null,
        "gender" : null,
        "birthDate" : null,
        "_links" : {
          "self" : {
            "href" : "http://localhost:8080/games-organizer/api/users/1"
          },
          "user" : {
            "href" : "http://localhost:8080/games-organizer/api/users/1"
          },
          "roles" : {
            "href" : "http://localhost:8080/games-organizer/api/users/1/roles"
          }
        }
      }, {
        "login" : "user2",
        "firstName" : "Lolek",
        "lastName" : "Kowalski",
        "email" : null,
        "password" : null,
        "gender" : null,
        "birthDate" : null,
        "_links" : {
          "self" : {
            "href" : "http://localhost:8080/games-organizer/api/users/2"
          },
          "user" : {
            "href" : "http://localhost:8080/games-organizer/api/users/2"
          },
          "roles" : {
            "href" : "http://localhost:8080/games-organizer/api/users/2/roles"
          }
        }
      }
  </code></pre>
  
  <p>Eventually how can i delete specific user using rest spring api and angular/spring? I don't know how can i do this without having id from any user(object). </p>
  
  <p>Update:</p>
  
  <p>I want to use this id, in invoke some method like this:</p>
  
  <pre><code>$scope.$on('deleteUser', function (event, id) {
          userService.delete({id: id}).$promise.then(
              function () {
                  // Broadcast the event to refresh the grid.
                  $rootScope.$broadcast('refreshUserGrid');
                  // Broadcast the event to display a delete message.
                  $rootScope.$broadcast('userDeleted');
                  $scope.clearForm();
              },
              function () {
                  // Broadcast the event for a server error.
                  $rootScope.$broadcast('error');
              });
  
      });
  </code></pre>
  
  <p>I want to delete some record from database in springRestAPI.</p>