Ionic 4 textarea to database.

Moderator: Support

Posts: 7
Joined: Tue Sep 01, 2020 7:11 pm

Ionic 4 textarea to database.

Post by dtan »

I know how to use an HTML control to create an ion-textarea. It works fine in the UI. How can I get the contents of that field into my database? All I see in the mapping screen is the HTML control, and I can't seem to get the app to set the value of a variable to whatever is in the textarea. Thanks!

Serhii Kulibaba
Posts: 147
Joined: Tue Aug 27, 2013 1:47 pm

Re: Ionic 4 textarea to database.

Post by Serhii Kulibaba »


Please add the property [(ngModel)] to that element and set the variable there which you will use to send data to the server. You can read it as

Code: Select all


and so on

Post Reply