I'm trying to upgrade my Angular2 app from rc5 to rc6 and am having trouble with the angular2-datatable directives. I moved them to the NgModule definition under the declarations section, but still get the following error when running the app...
Error in app/dashboard.component.html:3:93 caused by: Object doesn't support property or method 'orderBy'
This data table worked fine with rc5, so I'm assuming it is having trouble finding the directives with the switch to rc6.
Here is my module definition...
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { DataTableDirectives } from 'angular2-datatable/datatable';
import { routing, appRoutingProviders } from './app.routing';
import { AppComponent } from './app.component';
import { DashboardComponent } from './dashboard.component';
import { DataService } from './data.service';
@NgModule({
imports: [ BrowserModule, routing ],
declarations: [ DataTableDirectives, AppComponent, DashboardComponent ],
providers: [ appRoutingProviders, DataService ],
bootstrap: [ AppComponent ]
})
export class AppModule { }
Has anyone else been successful running angular2-datagrid with rc6 (or even rc5 using the NgModule declarations)?