2.0.2 • Published 3 months ago

ng-readmore v2.0.2

Weekly downloads
42
License
MIT
Repository
github
Last release
3 months ago

ReadMore

This library was generated with Angular CLI version 16.2.12 and Node Version is v18.10.0.

Intro

This is an angular module that will help reduce text to smaller version and will show read more/less option after that

Installation

npm install ng-readmore --save

Usage

import { ReadMoreModule } from 'ng-readmore';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    ReadMoreModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

app.component.html

<app-read-more [text]="text" [maxLength]="40"></app-read-more>

By default it will reduce the string to 30 words if user does not pass the maxLength

Contribution

Bug fixes and features are welcomed.

Here is the link for module ng-readmore

2.0.2

3 months ago

2.0.1

3 months ago

2.0.0

3 months ago

0.1.0

4 years ago

1.0.0

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago