AngularJS directive that limit text and adds show more / show less links to your text when it exeeds certain limit of characters. Only angularjs is required.
##Codepen demo
As element
<show-more text="book.descripton" limit="170">
As attribute
<div show-more text="book.descripton" limit="170"></div>
text
- full textlimit
- number > 0 of maximum characters before adding "..." and the more/less text. Default: unlimited
##License angular-read-more is licensed under the MIT license.