Skip to content

BhattaRj/angular-show-more

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-show-more

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

Codepen demo

How to use in HTML

As element

<show-more text="book.descripton" limit="170">

As attribute

<div show-more text="book.descripton" limit="170"></div>
  • text - full text
  • limit - number > 0 of maximum characters before adding "..." and the more/less text. Default: unlimited

##License angular-read-more is licensed under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published