dotnet/aspnetcore
Auf GitHub ansehenmake Partial Tag Helper's "view-data" attribute helperful
Open
#9.736 geöffnet am 25. Apr. 2019
affected-fewarea-mvcbughelp wantedseverity-major
Repository-Metriken
- Stars
- (37.933 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 16T 9h) (258 gemergte PRs in 30 T)
Beschreibung
<partial name="view" view-data-additionalItem="abc" />
The IDictionary<string,object> has a very helpful way to add item , But this line of code throw exception because view-data is null .
I suggestion to either support this razor syntax or add a new attribute to add addiontal item to the partial view and not effect the current view‘s ViewData