It works with <textarea> and it auto-resizes its height on:
<textarea autoresize></textarea>
<textarea autoresize autoresizeMaxHeight="150"></textarea>
maxHeight: 150
text: "This text is written in a component variable\nThis text is written in a component variable\nThis text is written in a component variable\nThis text is written in a component variable\nThis text is written in a component variable\nThis text is written in a component variable\nThis text is written in a component variable\nThis text is written in a component variable\nThis text is written in a component variable\nThis text is written in a component variable\nThis text is written in a component variable\nThis text is written in a component variable\nThis text is written in a component variable."
<textarea [autoresize]="text" [autoresizeMaxHeight]="maxHeight"></textarea>
<textarea [autoresize]="text" [autoresizeMaxHeight]="maxHeight" [(ngModel)]="text"></textarea>