Skip to content

Dynamic Dialog templates #185

Discussion options

You must be logged in to vote

Hey,

Dialog also has a default slot and the first parameter of the open function represents the default slot. Like in the below example ProductListDemo.

const dialogRef = dialog.open(ProductListDemo, {/*other options*/});

On the other hand, the container slot wraps the whole dialog (header, footer, and default slot). If the container slot is to be used, there is no need to use the default slot. A backward compatible way can be considered for DynamicDialog.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tugcekucukoglu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants