使用c#controller加载Angular2路由

时间:2018-04-03 07:51:11

标签: c# asp.net-mvc angular2-routing

我想加载路线

{ 
  path: dirName + 'activation/:idNumber/:cellNumber/:referenceNumber',
  component: ActivationComponent,
  canLoad: [CanLoadGuard] 
}

但我需要从控制器执行此操作 - 因此,如果拨号器访问该URL,则MVC视图需要加载上面的路径

public ActionResult Activation()
{
     try
     {
         return View();
     }
}

0 个答案:

没有答案
相关问题