如何将Angular2-datatables升级到rc6?

时间:2016-09-07 20:57:22

标签: angular angular2-directives angular-datatables

< p>我试图将我的Angular2应用程序从rc5升级到rc6,并且遇到了angular2-datatable指令的问题。我将它们移动到声明部分下的NgModule定义,但在运行应用程序时仍然出现以下错误...< / p> < pre>< code> app / dashboard.component.html:3:93引起的错误:对象不支持属性或方法' orderBy' < /代码>< /预> < p>这个数据表与rc5一起工作正常,所以我假设它无法通过切换到rc6找到指令。< / p> < p>这是我的模块定义...< / p> < pre>< code>导入{NgModule}来自' @ angular / core&#39 ;; 从' @ angular / platform-b​​rowser'中导入{BrowserModule}; 从' angular2-datatable / datatable'中导入{DataTableDirectives}; 从' ./ app.routing'中导入{routing,appRoutingProviders}; 从' ./ app.component'中导入{AppComponent}; 从' ./ dashboard.component'中导入{DashboardComponent}; 从' ./ data.service'中导入{DataService}; @NgModule({   导入:[BrowserModule,routing],   声明:[DataTableDirectives,AppComponent,DashboardComponent],   提供者:[appRoutingProviders,DataService],   bootstrap:[AppComponent] }) 导出类AppModule {} < /代码>< /预> < p>有没有其他人成功使用rc6运行angular2-datagrid(甚至是使用NgModule声明的rc5)?< / p>

0 个答案:

没有答案