Socket
Socket
Sign inDemoInstall

ng-readmore

Package Overview
Dependencies
5
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ng-readmore

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.2.12 and Node Version is v18.10.0.


Version published
Maintainers
1
Created

Readme

Source

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

Keywords

FAQs

Last updated on 28 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc