ng-autosize

Angular Directive that automatically adjusts textarea height to fit content

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
ng-autosize
52191.1.07 years ago7 years agoMinified + gzip package size for ng-autosize in KB

Readme

ng-autosize
ng-autosize is an Angular2, Angular4 + directive that automatically adjusts textarea height to fit content. It adjusts the textarea height automatically to any text input, or changes to the model bound to the textarea.

Demo

http://stevepapa.com/ng-autosize

Installation:

```bash npm install ng-autosize ```

Use Example:

Add the declaration to your @NgModule: ```typescript import {Autosize} from 'ng-autosize'; ... @NgModule({ declarations:
Autosize
}) ``` Use directly inside your HTML templates by adding the word 'autosize' to any textarea. ``` ```

Extra Configuration Options:

Set a minimum height on your textarea. ``` ``` Set a maximum height on your textarea. ``` ```

Author

Steve Papa

Licence

This project is licensed under the MIT license. See the LICENSE file for more info.