How to get text from ion-textarea

Hi everyone! I would like to take the text typed inside an ion-textarea and “mirror” it in another field of the web page.
In order to do so i want to use this piece of code:

    var notes1 = document.getElementById('notes1');

    notes1.onkeyup = function(){
        document.getElementById('notePavPreview').innerHTML = notes1.value;
    }

This doesn’t work, the code can’t get the content of the textarea and reading in the documentation apparently I have to use the method “getInputElement”, but I don’t really know how to proceed, could someone help me out or link me something that explains better?

Read the docs, it explains it: Ionic Textarea Component and CSS Properties for Multi-Line Input