how to show long text with more button using angular?

前端 未结 5 857
执笔经年
执笔经年 2021-02-19 08:22

i have long text like that :-

\"5 Simple Steps to Improve Patient Experience5 Simple Steps to Improve Patient Experience5 Simple Steps to Improve Patient Experience5 Si

5条回答
  •  野性不改
    2021-02-19 09:03

    I think there is an easier way.
    Just replace {{text}} with {{text | limitTo: 150}}, and then create below simple read more link.

提交回复
热议问题