ejAccordion dynamic content (*ngIf)

Hello,

I need to have dynamic content within ejAccordion, but looks like it doesn't like *ngIf. Any solutions?
               <ej-accordion>
                    <h3 >
                        <a rel='nofollow' href="#">{{contextMenuTitle1}}</a>
                    </h3>
                    <div>
                         <ej-treeview cssClass="customize" (nodeSelect)="onNodeSelected($event)" width="100%" [fields]="mainMenuViewFields" expandOn='click'></ej-treeview>
                    </div>
                  <h3 *ngIf="HasSecondContextMenu">
                        <a rel='nofollow' href="#">{{contextMenuTitle2}}</a>
                    </h3>
                    <div *ngIf="HasSecondContextMenu">
                          <ej-treeview cssClass="customize" (nodeSelect)="onNodeSelected($event)" width="100%" [fields]="mainMenuViewFields2" expandOn='click'></ej-treeview>
                    </div>
                </ej-accordion>

1 Reply

KV Karthikeyan Viswanathan Syncfusion Team March 20, 2017 12:18 PM UTC

Hi Me, 

Thanks for contacting Syncfusion support. 

We have prepared a sample for dynamic adding items using your share code example.  


Regards,
Karthikeyan V. 


Loader.
Up arrow icon