npm i ngx-auto-textarea
@NgModule({
declarations: [
],
imports: [
NgxAutoTextareaModule
],
providers: [
],
bootstrap: []
})
<lib-ngx-auto-textarea [maxLength]="100"></lib-ngx-auto-textarea>
<textarea name="" id="" cols="30" rows="10" libNgxAutoTextarea [maxLength]="10"></textarea>