How to handle / bind Angular signals with <input> of the html?

Discussão em 'Angular' iniciado por Juergen Gross, Outubro 31, 2024.

  1. In my Angular app the variable value will be changed by a HTML element <input> and two-way binding as

    <input
    [(ngModel)]=variableName
    (OnKeyup)="DoSomething"
    >


    But now [(ngModel)] will not work for signals. Should it now the best praxis to use e.g. a (onKeyup) to start a function, which will excecute ... variableName.set(value). And how to get the value and "sent" back to the input field value?

    Continue reading...

Compartilhe esta Página