p-accordion selected=true content not shown

UI Components for Angular
Post Reply
orenger
Posts: 1
Joined: 19 Nov 2019, 13:59

19 Nov 2019, 14:08

hello,
im using primeng and i'm facing issue regarding the accodion panel.

Code: Select all

<p-accordion>
    <p-accordionTab header="Header 2" [selected]="true">
        <ng-template pTemplate="content">
           <ng-content></ng-content>
        </ng-template>
    </p-accordionTab>
</p-accordion>
i expect it to show my content, however it doesn't.
but if im not using the lazy loading feature its working.

Code: Select all

<p-accordion>
    <p-accordionTab header="Header 2" [selected]="true">
        <ng-content></ng-content>
    </p-accordionTab>
</p-accordion>
i guess this is a problem with lazy loading or any of lifCycles... is there anything i can do to use both selected=true and lazy loading?
please help

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests