A set of factories to create simple mock handlers for CRUD data in Angular.
Basic Example Setup
The most concise way to create mock handlers is like so
// A bunch of boilerplate up here so you are still in control;var rhMock = ;var data =list: key: "value 1" key: "value2"otherList:;angular;angularrequires;
Long-Form Example Setup
create( path, methods, list ) sets up handlers with the methods used below, which you can also use directly, if you like.
//... Just like before the `run` block above ...;angularrequires;
[ "skip", "take", "offset", "limit", "page", "rhcurrentpage", "search" ]
An array of params that will be ignored when filtering paged responses.
The parameter that the paged response will use to skip a number of items from the available list.
The parameter that the paged response will use to take a number of items from the available list.