我在使用路由器对 Angular 2 RC4 应用程序进行单元测试时遇到问题。它给了我这个错误:
Can't bind to 'routerLink' since it isn't a known native property (" <p>Please Go to <a href="/">Home</a></p>
我已经实现了这样的测试:
beforeEach(() => {
addProviders([
FormBuilder,
disableDeprecatedForms(),
provideForms(),
HTTP_PROVIDERS,
APP_ROUTER_PROVIDERS,
ROUTER_DIRECTIVES
])
});
请帮助我完成这个过程。