parent
28e6882988
commit
063d48753a
|
@ -47,7 +47,7 @@ The following markup uses an explicit path, indicating that *_ProductPartial.csh
|
|||
|
||||
## for
|
||||
|
||||
The `for` attribute assigns a [ModelExpression](/dotnet/api/microsoft.aspnetcore.mvc.viewfeatures.modelexpression) to be evaluated against the current model. A `ModelExpression` infers the `@Model.` syntax. For example, `for="Product"` can be used instead of `for="@Model.Product"`. This default inference behavior is overridden by using the `@` symbol to define an inline expression. The `for` attribute can't be used with the [model](#model) attribute.
|
||||
The `for` attribute assigns a [ModelExpression](/dotnet/api/microsoft.aspnetcore.mvc.viewfeatures.modelexpression) to be evaluated against the current model. A `ModelExpression` infers the `@Model.` syntax. For example, `for="Product"` can be used instead of `for="@Model.Product"`. This default inference behavior is overridden by using the `@` symbol to define an inline expression.
|
||||
|
||||
The following markup loads *_ProductPartial.cshtml*:
|
||||
|
||||
|
|
Loading…
Reference in New Issue