Can't bind to 'value' since it isn't a known property of 'p-table'.

UI Components for Angular
Post Reply
thassan1977
Posts: 1
Joined: 14 Oct 2018, 11:32

14 Oct 2018, 11:49

[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]

yigitfindikli
Posts: 21
Joined: 08 Aug 2018, 14:09

15 Oct 2018, 10:50

Hi,

DataTable is deprecated, use TurboTable instead.

https://www.primefaces.org/primeng/#/table

PhilHuhn
Posts: 22
Joined: 19 Sep 2018, 02:52

18 Oct 2018, 00:39

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:

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
];
Then in app.module.ts

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 { }
This make the app.module.ts file simpler.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests