<input -sharplocalInput>
{{localInput.value}}</>
in Angular, a template is used to refer to a problem with the use of variables, and the p tag displays the value of the input.
happens to be here today, but the value of the p element does not change when it is modified in input. The value of the p tag changes after a click event is written, and using asynchronous events such as setTimeout in the component has the same effect.
<input -sharplocalInput>
{{localInput.value}}</>
<button (click)="showValue(localInput.value)">input</button>
Excuse me, what is the principle of this?
there are many problems with forgiving beginners.