Hi,
I m using more than ej-dialog in many tabs in my app components,
This is the appComponent.html
<div style="padding-left:0px;" class="collapse navbar-collapse" id="skeleton-navigation-navbar-collapse">
<ul class="nav navbar-nav">
<li><a data-toggle="collapse" data-target="#skeleton-navigation-navbar-collapse.in" rel='nofollow' href="#" [routerLink]="['/']">Syncfusion Angular 2</a></li>
<li><a data-toggle="collapse" data-target="#skeleton-navigation-navbar-collapse.in" rel='nofollow' href="#home" [routerLink]="['/home']">Home
</a></li>
<li><a data-toggle="collapse" data-target="#skeleton-navigation-navbar-collapse.in" rel='nofollow' href="#grid" [routerLink]="['/grid']">Grid
</a></li>
<li><a data-toggle="collapse" data-target="#skeleton-navigation-navbar-collapse.in" rel='nofollow' href="#excelGrid" [routerLink]="['/excelGrid']">Excel Grid
</a></li>
</ul>
</div>
<main>
<div class="container">
<router-outlet></router-outlet>
</div>
</main>
and in gridComponent html and excelgridCompont html i use ej-dialog , like :
<ej-dialog id="deleteFileDialog" title="Dialog" [showOnInit]="showOnInitialize">
Delete File
<table>
<tr>
Are you sure you want to delete file ?
</tr>
</table>
<div class="footerspan" style="float:right">
<button (click)="deleteFileInfo($event)">Yes</button>
<button (click)="delcancel($event)">No</button>
</div>
</ej-dialog>
the problem example: after routing to Grid tab(with or without opening the dialog), and route to another one, the dialogues in grid component is appeared as controls on html page , and every route to grid tab, a new dialog controls is added to page :(
Kindly tell me the solution ASAP
Attachment:
dialog_error_1a3a6d7e.rar