Angular 18 input signal instead of @Input

Discussão em 'Angular' iniciado por Ajai Ramalingam, Dezembro 13, 2024.

  1. Hi I'm having doubt I'm using input signal instead of @Input I'm sending data from parent component one as simple variable like and another as signal

    name = "ajai" name=signal("ajai")

    Both are working what is the difference between these two statement. I thought input() is a signal it accepts only signal but it accepting normal string and effect also got triggered How ?

    I would like to know which is best way to use name = "ajai" or name=signal("ajai") and when to use name = "ajai" or name=signal("ajai").

    Continue reading...

Compartilhe esta Página