Open
Description
Issue type
I'm submitting a ...
- bug report
- feature request
Issue description
Current behavior:
this.dialogService.open(OrderDetailComponent, {
closeOnBackdropClick: false,
context: {
// Error: TS2322: Type 'Order' is not assignable to type 'InputSignal<Order> | undefined'
data: data,
},
});
Expected behavior:
The input model should be updated, not tried to be replaced by new value
Steps to reproduce:
- Create a component with
inputSignal
(input.required()
); - Open the component with
context
specifying ourinputSignal
Related code:
@Component(...)
class MyDialogComponent {
data = input.required<string>();
}
@Component(...)
class MyParentComponent {
private readonly dialogService = inject(NbDialogService);
onCreate(): void {
this.dialogService.open(MyDialogComponent , {
context: {
data: 'test',
},
});
}
}
Other information:
npm, node, OS, Browser
Node: v20.12.2
System: Win11
Angular, Nebular
Angular: 17
Nebular: 13
Metadata
Metadata
Assignees
Labels
No labels