A big part of REST is the idea of Hypermedia As The Engine Of Application State. Using HATEOAS brings the qualities of the web such as the robustness and scalability to your system.
In this presentation you will see how we have built a hypermedia-driven client using Angular.js. The media type we have used is HAL.
31. follow() Replace content of directive with
resource behind link
Example:
<a ng-click=“links[‘children’].follow()”></a>
31
32. function(method, data) Do an HTTP call
with the specified method and the specified data
in the request. Returns a promise.
Example:
$scope.links[‘save’](‘POST’, $scope.form).then(...);
32