angular 2路由时出错

时间:2016-05-09 10:33:31

标签: asp.net typescript angular

我使用的是角度2.0.0-beta.0。以下代码是正确的但当我在角度2.0.0-beta-17中使用相同的代码时,它显示Errors.Error图像是在这个问题的最后请指导我。我将非常感谢你。

App.ts

<lib dir=".../carrot2-workbench-3.12.0/plugins/" regex=".*\.jar" />

错误

Errors

1 个答案:

答案 0 :(得分:0)

导入Location
import {Location} from 'angular2/platform/common';

另见Location and HashLocationStrategy stopped working in beta.16