Looking for someone to piece together an Ionic 2 Elastic chat similar to functionality shown here https://codepen.io/rossmartin/pen/XJmpQr.
Part of this was created by sababa in this directive shown below:
import {HostListener, Directive} from '@angular/core';
@Directive({
selector: '[elastic]'
})
export class Elastic {
@HostListener('input',['$event.target'])
onInput(nativeElement: any): void {
nativeElement.style.height = nativeElement.scrollHeight + "px";
}
}
This directive creates new lines similar to the codepen however the issue with this directive is that it does not delete lines when a user backspaces/deletes their text. Looking for someone to fix this issue. Leave a message here with your skype/email info if you can do this. Thank you.