Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/evseevdev/ngx-textarea-autosize

Automatic height control of textarea to fit the content for Angular.
https://github.com/evseevdev/ngx-textarea-autosize

angular autosize textarea

Last synced: 11 days ago
JSON representation

Automatic height control of textarea to fit the content for Angular.

Awesome Lists containing this project

README

        

# ngx-textarea-autosize
Angular 2+ plugin to automatic height control of textarea to fit the content.

## Installation:

NPM:
```bash
npm install --save ngx-textarea-autosize
```
Yarn:
```bash
yarn add ngx-textarea-autosize
```

## Usage:
Import module to your @NgModule:

```typescript
import { TextareaAutosizeModule } from 'ngx-textarea-autosize';

@NgModule({
imports: [
TextareaAutosizeModule
]
})
```

Add directive to your textarea
```
Some text
```