Last active
November 26, 2015 16:54
-
-
Save lgrayland/3c2f596b33a05214c826 to your computer and use it in GitHub Desktop.
Filter to create place holder text when fiend is null of undefined
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
.filter('placeholdEmpty', function($timeout) { | |
var incre = 0 | |
$timeout(function(){ | |
incre = 0; | |
}, 5000); | |
return function (input) { | |
if (!(input == undefined || input == null)) { | |
return input; | |
} else { | |
incre += 1; | |
return 'new property ' + incre; | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment