The first correction:
This line:
Func<dynamic, object> petTemplate = @<p>You have a pet named @item.Name.</p>;
should become:
Func<dynamic, object> petTemplate = @<p>You have a pet named <strong>@item.Name</strong>.</p>;
this is in order to match the output which contains the <strong> tags.
The second correction:
This line:
@petTemplate2(pet)
should become:
@petTemplate(pet)
because petTemplate2( ) function does not exist in the context.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@shadinamrouti thanks for the report. Would you be able to create a PR to fix these issues?
Hi @Rick-Anderson , sure, I will do it. Thanks.
Most helpful comment
Hi @Rick-Anderson , sure, I will do it. Thanks.