This package has been deprecated

Author message:

This project has been renamed to ngx-autogrow. Install using ngx-autogrow instead.

angular-autogrowjs

1.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i angular-autogrowjs

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • hupf
  • topaxi