angular input length code example
Example 1: angular limit string length
{{ (str.length>6)? (str | slice:0:6)+'..':(str) }}
Example 2: validation maxlength angular
Validators.maxLength(11)
{{ (str.length>6)? (str | slice:0:6)+'..':(str) }}
Validators.maxLength(11)