To update #box
in <p>
, I need to give a random value to the (keyup)
attribute.
Here's an example:
<!-- The value on the right of equality sign for (keyup) doesn't matter -->
<input #box (keyup)="some_random_value" placeholder="something">
<p>{{box.value}}</p>
But if, for instance, I have
<input #box placeholder="something">
<p>{{box.value}}</p>
Then #box
won't get updated at all?