Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var spaceReplace = {
- encode: function(str) { return str && str.replace(/ /g, "-"); },
- decode: function(str) { return str && str.replace(/-/g, " "); },
- is: angular.isString,
- pattern: /[^/]+/
- };
- $urlMatcherFactoryProvider.type('spaceReplace', spaceReplace);
Add Comment
Please, Sign In to add comment