Use the resource class methods for read (GET) operations:
$scope.resources = resourceService.query({pageNumber: 1, pageSize: 5});
$scope.resource = resourceService.get({id: 1});
Create a new instance of the resource:
new resourceService();
Use the resource instance methods for write (DELETE, POST, PUT) operations:
$scope.resource.$delete(function() {});
$scope.resource.$save(function() {});
$scope.resource.$update(function() {});
// Directives: bind new behaviour to HTML elements. When the application runs, AngularJS walks through each element looking for directives. // Expressions: display data in the controller on the page. Objects use dot notation. // Filters: format data in the view, using the pipe '|', symbol. Helps to separate the controller data from its presentation in the view.
/
, a view will be constructed by injecting home.html
into the <div ng-view>
element./