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.
Syncfusion Feedback

ejAccordion dynamic content (*ngIf)

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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>

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.  


Regards,
Karthikeyan V. 


CONFIRMATION

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.

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

;