Angular @ouput a values when a signal change

Discussão em 'Angular' iniciado por Raphaël Balet, Março 9, 2025.

  1. What is the best way to @output the value of a variable with angular signal ?

    Let say we have the following

    $foo = signal<string>('')

    @Output() fooChanged: EventEmitter<string> = new EventEmitter<string(this.$foo())


    1. effect: My first though would have been to use effect but as I read it, it should kind of being avoided if possible.


    2. computed: I would love to use it, but I don't know how to implement it properly

    Continue reading...

Compartilhe esta Página