Ionic 2 Elastic chat

I am wondering if anyone has come up with a clean solution or example for an Ionic 2 Elastic Chat similar to this one here:

I saw the discussion on this thread here: Elastic ion-textarea but it seems the textarea solution here only increases the height on new lines without decreasing it if the user deletes a line.

If anyone has any examples or directives they have created for this it would be appreciated, thanks.