Forked from builtbylane/angular-remove-white-space-filter.js
Created
January 28, 2014 17:32
-
-
Save toddsby/8672226 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Description: | |
* removes white space from text. useful for html values that cannot have spaces | |
* Usage: | |
* {{some_text | nospace}} | |
*/ | |
app.filter('nospace', function () { | |
return function (value) { | |
return (!value) ? '' : value.replace(/ /g, ''); | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment