frankframework / frankframework/angular-components

Replace in-/output properties with signals

Đang mở
#33 0 bình luận 0 reaction 1 người được giao Được @Matthbo nhận Xem trên GitHub
enhancement
Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

`@Input() ...` and `@Output() ...` should be replaced with the new signals system.
E.g.
```ts
// @Input({ ... }) active = ...;
public active = input<...>(...);

// @Output() activeChange = new EventEmitter<...>();
public activeChange = output<...>();
```

This means parents do need to handle input and output fully.
To follow the example above, activeChange will output a change in state and the parent has to update the active input to reflect the state change or else to component simply wont update. This also means the state is fully managed by the parent instead of having any state internally

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.