[code]is there a way to get the basic example of data table to work ???
or data table still experimental ???
will it ever work?
thanks
[/code]
Can't bind to 'value' since it isn't a known property of 'p-table'.
-
- Posts: 449
- Joined: 08 Aug 2018, 14:09
I think you need to add TableModule in the app.module.ts
I break it up into an array of modules. This is my APP_MODULE_PRIMENG.ts file:
Then in app.module.ts
This make the app.module.ts file simpler.
I break it up into an array of modules. This is my APP_MODULE_PRIMENG.ts file:
Code: Select all
//
import { TableModule } from 'primeng/components/table/table';
import { DialogModule } from 'primeng/components/dialog/dialog';
import { ConfirmDialogModule } from 'primeng/components/confirmdialog/confirmdialog';
import { DropdownModule } from 'primeng/components/dropdown/dropdown';
import { MenubarModule } from 'primeng/components/menubar/menubar';
//
export const APP_MODULE_PRIMENG = [
TableModule,
DialogModule,
ConfirmDialogModule,
DropdownModule,
MenubarModule
];
Code: Select all
// File: app.module.ts
import { NgModule } from '@angular/core';
//
...
import { APP_MODULE_PRIMENG } from './APP.MODULE-PRIMENG';
...
//
@NgModule({
...
imports: [
...
APP_MODULE_PRIMENG
],
...
})
export class AppModule { }