您好我在尝试构建时遇到此错误。路由基于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
};
任何建议都会很棒。感谢