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