Dynamically load ASP.NET5 View Components using Jquery

Long back I wrote a post about loading partial views using JQuery. This post is about loading View Components in ASP.NET5 with the help of JQuery. Similar to previous versions of MVC, this version also supports returning View component from Action Result. So here is the controller code.

public IActionResult AddURLTest()
    return ViewComponent("AddURL");

You can load it using JQuery load method.

$(document).ready (function(){

Happy Programming.