Socket
Socket
Sign inDemoInstall

ng-textarea-autosize

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

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


Version published
Maintainers
1
Install size
3.10 kB
Created

Readme

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

FAQs

Last updated on 09 Oct 2018

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