用于URL的Angular 2 500内部服务器:新错误时的api /编辑

时间:2017-04-05 01:01:52

标签: angular angular2-routing angular2-services

您好我在尝试构建时遇到此错误。路由基于Angular Heroes教程:

https://angular.io/docs/ts/latest/tutorial/toh-pt6.html

然而,当我跑步时,我收到此错误:

异常:调用节点模块失败并显示错误:错误:未捕获(在承诺中):状态响应:500 URL的内部服务器错误:api / edit 在新错误(本机)

neuralnet.service.ts

// tasks becomes an IEnumerable<TaskViewModel>
var tasks = db.Tasks.Select(x => new TaskViewModel { A = x.A, B = x.B }).ToList();

var vm = new TaskIndexViewModel
{
    Tasks = tasks,
    Foo = bar
};

任何建议都会很棒。感谢

0 个答案:

没有答案