Skip to content

Instantly share code, notes, and snippets.

@niccolomineo
Created August 9, 2016 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niccolomineo/8a9c14d98ed729a98ce003cb48a3963b to your computer and use it in GitHub Desktop.
Save niccolomineo/8a9c14d98ed729a98ce003cb48a3963b to your computer and use it in GitHub Desktop.
AngularJS - Filter - Join
// Filter: removes all non alphanumerical characters from input
myApp.filter('join', function() {
return function(input) {
input = input || '';
var output = input.replace(/\W/g, '');
return output;
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment