Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular input/output/model Migration #766

Open
2 tasks
hupf opened this issue Dec 18, 2024 · 0 comments
Open
2 tasks

Angular input/output/model Migration #766

hupf opened this issue Dec 18, 2024 · 0 comments
Labels
tech-task Ein Tech-bezogenes Issue

Comments

@hupf
Copy link
Collaborator

hupf commented Dec 18, 2024

Seit Angular 19 sind Signal Inputs und Function-based Outputs stabil. Diese werden zum neuen Standard bei Angular und sind insb. interessant, da sie sich besser in das reaktive Modell integrieren.

Tasks:

  • Alle @Input zu Signal Inputs migrieren → https://angular.dev/reference/migrations/signal-inputs
    • Schema migration ausführen
    • Pflicht-Inputs können mit input.required markiert werden.
    • Two-way Input-Outputs (z.B. value/valueChange) können vereinfacht werden mit model.
    • Dort wo ein BehaviorSubject verwendet wird, bei dem wir "next" machen in ngOnChanges, kann es mit einem toObservable wrapped input vereinfacht werden.
    • In Tests, wo Input-Werte gesetzt werden, muss setValue auf der ComponentRef verwendet werden.
  • Alle @Output zu Function-based Outputs migrieren → https://angular.dev/reference/migrations/outputs
    • Schema migration ausführen
    • API ist immer noch .emit, sollte keine grossen Änderungen geben.
@hupf hupf added the tech-task Ein Tech-bezogenes Issue label Dec 18, 2024
@hupf hupf moved this to New in Backlog Evento Dec 18, 2024
@caebr caebr mentioned this issue Feb 3, 2025
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech-task Ein Tech-bezogenes Issue
Projects
Status: New
Development

No branches or pull requests

1 participant