1.0.2 • Published 7 years ago

angular-autogrowjs v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

angular-autogrowjs

Angular directive for automatically height-adjusted textareas that also works within scrolling containers. Based on autogrow.js by Damian Senn.

Usage

Import AutogrowModule in your app or shared module:

import { NgModule } from '@angular/core';
import { AutogrowModule } from 'angular-autogrowjs';

@NgModule({
  imports: [
    AutogrowModule
  ]
})
export class AppModule {}

Define the directive on the textareas that should grow with their content:

<textarea autogrow></textarea>

Alternatively define an initial height:

<textarea autogrow rows="5"></textarea>

Authors

Mathis Hofer, Damian Senn

License

MIT