0
I’m learning angular and I’m having a difficulty, the program is very simple has a textInput and a paragraph, which if typing in the textInput should appear in the paragraph.
onKeyUp(evento: any){
     this.valorAtual = evento.target.value ;
     console.log(evento.target.value)
  }
         <input type="text"  (keyup)="onKeyUp($event)"   />
         <p> {{valorAtual}}</p>
The problem is that sometimes it works, other times it doesn’t just update once I don’t know what I’m doing wrong.