dotnet / dotnet/aspnetcore

make Partial Tag Helper's "view-data" attribute helperful

Open
#9,736 7 comments 8 reactions 0 assignees View on GitHub
affected-few area-mvc bug help wanted severity-major
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

```html

```
The `IDictionary` 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.