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.
Unfortunately, activation email could not send to your email. Please try again.

ejAccordion dynamic content (*ngIf)

Thread ID:





129431 Mar 17,2017 03:46 AM Mar 20,2017 08:18 AM Angular 1
Tags: ejAccordion
Asked On March 17, 2017 03:46 AM


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 08:18 AM

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.

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.