Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

new service available : getParams

Compare
Choose a tag to compare
@erkobridee erkobridee released this 15 Oct 12:12
· 10 commits to master since this release
angular.mock.backend.addResource(function(getParams) {

  var url = '/user?param1=abc&param2=def';

  var paramMap = getParams(url);

  console.log(paramMap.param1); // abc

  console.log(paramMap.param2); // def

});