Angular 2 Read More Directive

前端 未结 10 1832
一个人的身影
一个人的身影 2020-12-01 09:41

I need to build a readmore directive in Angular2. What this directive will do is for collapse and expand long blocks of text with \"Read more\" and \"Close\" links. Not on t

10条回答
  •  悲&欢浪女
    2020-12-01 10:17

    You can use this plugin.

    It is very simple to use only to pass [text] and [textLength] which you want to show by default https://www.npmjs.com/package/nga-read-more

提交回复
热议问题