diegopamio/angular-sails-bind — pull request #17 by rmarku (2014-09-20 16:09:28+00:00)
Title: Added support for prefix in the route of the model

Now when a prefix is used in blueprints, we can call sails bind with the prefix in the resourceName. The resourceName can have the prefix string added, and the array created in $scope, will have the name of the endpoint only.

example.
Insted of calling
$sailsBind.bind("item", $scope, {"name": {"contains": "Foo"}};

if I configure the prefix in blueprints.js with " prefix: '/api' ", now I can call sailsBind like

$sailsBind.bind("api/item", $scope, {"name": {"contains": "Foo"}};

I has copy/pasted the test and changed the resourceName to test this. I dont know if there is a better/cleaner weay.