Skip to content

Commit 5ec5c96

Browse files
authored
Remove [ViewData] example using @model with a controller (#17805)
1 parent a92a74b commit 5ec5c96

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

aspnetcore/mvc/views/overview.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,6 @@ public class HomeController : Controller
266266
}
267267
```
268268

269-
In the About view, access the `Title` property as a model property:
270-
271-
```cshtml
272-
<h1>@Model.Title</h1>
273-
```
274-
275269
In the layout, the title is read from the ViewData dictionary:
276270

277271
```cshtml

0 commit comments

Comments
 (0)