This repository has been archived by the owner on Feb 18, 2021. It is now read-only.
configure backend mock resources with AngularJS $injector
- regexpUrl
isolated in one scope, and added more intelligence, that's allow, configure some regexp using string or RegExp object
- configure backend mock resources with AngularJS $injector
with this, now it's possible to configure resource, like service, factory or controller, with dependency injection
angular.mock.backend.addResource(function($rootScope, httpBackend, regexpUrl) { ... });
or
angular.mock.backend.addResource(
[ '$rootScope', '$httpBackend', 'regexpUrl',
function(scope, httpBackend, regexpUrl) { ... }]);