Created
May 6, 2016 12:51
-
-
Save 4gray/0befcf66349facf93ea881f5b5bbc3fc to your computer and use it in GitHub Desktop.
Limit the length of a string with AngularJS
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
{{ string | limitTo: 20 }}{{string.length > 20 ? '...' : ''}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment