0

In my input I enter 123. On submit I want to have 456.

How to change an input value?

My HTML (Ionic2)

<ion-textarea [ngFormControl]="message"></ion-textarea>

JavaScript

this.message.value = '456';
console.log('>>>', this.message.value); // output is '123'

1 Answer 1

3

Use 2 way binding Something like:

<ion-textarea [(ngFormControl)]="message"></ion-textarea>
Sign up to request clarification or add additional context in comments.

1 Comment

This is unfortunately not working. Is the issue deeper?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.