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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ejAccordion dynamic content (*ngIf)

Thread ID:





129431 Mar 17,2017 07:46 AM UTC Mar 20,2017 12:18 PM UTC Angular 1
Tags: ejAccordion
Asked On March 17, 2017 07:46 AM UTC


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>

Karthikeyan Viswanathan [Syncfusion]
Replied On 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. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon