angular limit string length
snippet in javascript

angular limit string length

user6923

   {{ (str.length>6)? (str | slice:0:6)+'..':(str) }}