Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
@Component(...)
class Component {
    @Input({ alias: 'example' }) 
    set value(value: unknown) { 
        this.demo.set(value); 
    }
    demo = signal<unknown | undefined>(undefined);
}



After Once Angular team release inputs as signals we can easily refactor our code to to down arrow 

Code Block
@Component(...)
class Component {
     demo = input<unknown | undefined>(undefined);
}

...