Base solution for your next web application
Open Closed

import from primeng #10785


User avatar
0
TimMackey created

ANZ version 8.4.0 angular/.NET Core

I see import { Table } from 'primeng/components/table/table'; and import { Table } from 'primeng/table'; being used interchangable throughout the code base.

Not just 'table', but all primeng component references use one reference method or the other; '/primeng/components/[comp]/[comp]' or 'primeng/[comp]'

ANZ apps build and execute correctly. Does it matter which form is used?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @timmackey

    Thank you for pointing this out. It seems like those imports are generated by Power tools, we will fix it, you can follow https://github.com/aspnetzero/aspnet-zero-core/issues/4157.

    The correct one is import { Table } from 'primeng/table';

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)