Open Closed

import from primeng #10785


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?


1 Answer(s)
  • 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';