August 2018
Intermediate to advanced
298 pages
5h 33m
English
Follow these steps to create a ViewComponent attribute:

The SimpleViewComponent file that we created will look like the following:
using Microsoft.AspNetCore.Mvc;using System;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;namespace Lesson3.ViewComponents{ public class SimpleViewComponent : ViewComponent { public IViewComponentResult Invoke() {...... } }}
Read now
Unlock full access