ngx-textarea-autosize2

Angular 2+ directive to automatically control height textarea to fit content (updated for angular 9.1)

Usage no npm install needed!

<script type="module">
  import ngxTextareaAutosize2 from 'https://cdn.skypack.dev/ngx-textarea-autosize2';
</script>

README

ngx-textarea-autosize2

Angular 2+ plugin to automatic height control of textarea to fit the content.

This is fixed version of ngx-textarea-autosize created by Vladimir Evseev.

Installation:

NPM:

npm install --save ngx-textarea-autosize

Yarn:

yarn add ngx-textarea-autosize

Usage:

Import module to your @NgModule:

import { TextareaAutosizeModule } from 'ngx-textarea-autosize2';

@NgModule({
  imports: [
    TextareaAutosizeModule
  ]
})

Add directive to your textarea

<textarea autosize>Some text</textarea>