2017-06-17 65 views
-1

我安裝了這個awesome ng2-admin項目,它工作正常。由於我是新角色,對於實驗,我想在dashboard.html div(自定義儀表板頁面)之一中使用表格。 我試過了,在DashboardModule中導入TablesModule,但沒有奏效。 請認準的項目結構在這裏 https://akveo.github.io/ng2-admin/articles/012-project-structure/ 也源代碼 https://github.com/akveo/ng2-adminng2-admin:如何在儀表板中使用使用表組件?

用表格組件在儀表盤將非常感激關於任何幫助。

回答

0
Looks like everything I was doing correct, just missing removing url router from tabled.modules 
I commented out following code 
//import { routing } from './tables.routing'; 
    ], 
@NgModule({ 
    imports: [ 
    CommonModule, 
    //routing' 
.... 
] 
and finally removed <router-outlet></router-outlet> from template. 
@Component({ 
    selector: 'tables', 
    template: `` 
}) 
相關問題