This code is in html template inside ngFor loop
{{ (user.text.length>1)? (user.text | slice:0:1)+'...':(user.text) }}
{{user.text.length}}
user is object which has text property example below.
user {
name: dslkdskld,
text: [johnd dskjsd, mark kdsdlk, joe sldk, john sdkds]
}
String.length in this case outputs 4. Does it assume everything prior to coma 1 character ? I was hoping to get the character length of entire user.text