Or you can provide an actual IDictionary<string, object> as view-data. Specifying both view-data and view-data-* merges the individual values into view-data.
Initial Proposal (Not Supported)
Turns out simple string values (familiar from asp-route-*) don't work for IDictionary<string, object>?
Works like
<component param-*>
:Or you can provide an actual
IDictionary<string, object>
asview-data
. Specifying bothview-data
andview-data-*
merges the individual values intoview-data
.Initial Proposal (Not Supported)
Turns out simple string values (familiar from
asp-route-*
) don't work forIDictionary<string, object>
?Anonymous object syntax isn't easy to support and it's not really idiomatic in Core anyway, so only passing a dictionary is allowed.