I'm learning Razor Pages Tag Helpers and trying to understand how the partial tag helper works. I notice it can take two different attribute to pass data into a partial: for
and model
.
for
: "The for attribute assigns a ModelExpression to be evaluated against the current model. "
model
: "The model attribute assigns a model instance to pass to the partial view."
I'm having trouble understanding this difference. Is model simply expecting an instance of the model, where for
expects a property? Can anyone break this down a little more for me?