Socket
Book a DemoInstallSign in
Socket

ng-textarea-autosize

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-textarea-autosize

Angular 5+ directive to resize a textarea field dynamically based on the content of the field instantaneously

1.0.5
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

ng-textarea-autosize

Do you hate gross HTML scroll bars on your textfield? Are you super lazy and want to install a package to never have to see those gross bars again? Welcome friend you need ng-textarea-autosize !

A directive to automatically resize a textarea field based on its contents - death to scroll bars!

Put it in:

npm install ng-textarea-autosize

How to make it work:

Add the declaration to your @NgModule:

import {Autosize} from 'ng-textarea-autosize';

...

@NgModule({
  declarations: [
    Autosize
  ]
})

Once you've done that all you need to do is add the Autoresize directive to your textarea input thusly

<textarea [autosize]>Begone awful scrollbars!</textarea>

Keywords

angular

FAQs

Package last updated on 09 Oct 2018

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.