We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

ejAccordion dynamic content (*ngIf)


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

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.  

Karthikeyan V. 

Live Chat Icon For mobile
Up arrow icon