Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Description:
- * removes mail domain from emailId field.
- * Usage:
- * {{some_text | hidemaildomain}}
- */
- app.filter('hidemaildomain', function () {
- return function (value) {
- return (!value) ? '' : value.replace(/@.*/g, '');
- };
- });
Add Comment
Please, Sign In to add comment