2016-11-27 48 views
0

我想將ng2-super-table整合到我的angular2應用程序中。 我使用github作爲我的源代碼: https://github.com/andyperlitch/ng2-super-tableAngular 2 and super ng-table

問題在於指令標記在ES5中有說明。

@Component({ 
    selector: 'demo-app', 
    directives: [SuperTable] 
    . 
    . 
}); 

我在互聯網上搜索,似乎我需要的指令添加到模塊的聲明是這樣的:

@NgModule({ 
    imports: [RouterModule], 
    declarations: [GridComponent, SuperTable], 
    exports: [GridComponent] 
}) 

的問題是,我還收到此錯誤: 能」 t綁定到'tableclasses',因爲它不是'超級表'的已知屬性。

我提到了我是angular2的新手。

你能幫我嗎!

回答