Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145572 | Jun 28,2019 10:51 AM UTC | Jun 10,2020 12:37 PM UTC | Angular - EJ 2 | 6 |
![]() |
Tags: Dialog |
Is it possible to pass an ng-template component as content using the Dialog Angular service? For example, can I replicate the following dialog component example using the service?<ejs-dialog id="editDlg" #editDlg[visible]='hidden'[isModal]='isModal'[animationSettings]='animationSettings'[showCloseIcon]='showCloseIcon'[header]='header'(open)="dialogOpen()"(close)="dialogClose()"[width]='width'><ng-template #content><app-edit-form *ngIf="modalContentSelect == 'edit'" [dataSource]="dataSource"></app-edit-form><app-create-form *ngIf="modalContentSelect == 'create'"></app-create-form></ng-template></ejs-dialog>
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.
This page will automatically be redirected to the sign-in page in 10 seconds.