August 2018
Intermediate to advanced
298 pages
5h 33m
English
Aim
To pass additional data to our view component at the time of invocation by using one of its overloads. So, let's pass the Four string as additional data so that the output will be as shown in the following screenshot:

Steps for completion
<p> This is a sample web page <br /> <div> @await Component.InvokeAsync("Simple", new { additionalData = "Four" } ) </div></p>
using Microsoft.AspNetCore.Mvc;using System;using System.Collections.Generic; ...
Read now
Unlock full access