Saturday, 6 June 2015

AngularJS limits the length of a string (truncate text)



{{ myString | limitTo: 20 }}{{myString.length > 20 ? '...' : ''}}


No comments:

Post a comment