NG0600: Writing to signals is not allowed in a `computed`

Discussão em 'Angular' iniciado por kibet, Fevereiro 6, 2025.

  1. kibet

    kibet Guest

    WHy am I getting the error: NG0600: Writing to signals is not allowed in a `computed`. yet I am using a writable signal?

    Below is the code

    dialog = signal(false)


    openDialog(action: 'edit' | 'create') {
    this.dialog.update(action => action = !action)
    return action
    }

    Continue reading...

Compartilhe esta Página