E
E
Evgeny Gerasimov2017-06-27 10:37:42
Angular
Evgeny Gerasimov, 2017-06-27 10:37:42

How to link two-way data entered into inputs, so that when you enter values ​​in one, the result appears in the other?

Hello dear visitors. As a newbie to angularJS, I have the following question. How to link two-way data entered into inputs, so that when you enter values ​​in one, the result appears in the other? The result should be the following:
There is a monthly payment (a known value), two inputs, the discount percentage is entered in one, the discount amount is entered in the other. I need that when entering percentage values, in the second input, by mathematical calculations, the amount of this very discount appears. And vice versa, so that when entering the discount amount, the percentage of the discount appears in the first input as well as a result of the mat. actions. Something like this https://plnkr.co/edit/eScyfsT7i6Tl4wQdee6v?p=preview only in working form)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
ozknemoy, 2017-06-27
@ozknemoy

something like this https://plnkr.co/edit/1mcttiOdxbjyMDlKstmi?p=preview

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question