You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you can provide to make the test for components using import inside a component? (no router module)
example:
asyncloadImportXlsx(){// avoid user throttlingif(this.isLoadingImportXlsx)return;this.isLoadingImportXlsx=true;constconfig: MatDialogConfig={width: '85%',height: '95%',disableClose: true,data: {currentDomain: this.selectedDomain}};// how test this line?constlazyComponent=awaitimport('@pages/import/import.component');constdialogRef=this.dialog.open(lazyComponent.ImportComponent,config);dialogRef.beforeClosed().subscribe(data=>this.title.setTitle(this.dashboardTitle));setTimeout(()=>{this.isLoadingImportXlsx=false;},1300);}
this code gets a ngModule using lazy load (with import) and then open it inside a new Material Dialog
The text was updated successfully, but these errors were encountered:
you can provide to make the test for components using
import
inside acomponent
? (no router module)example:
this code gets a
ngModule
using lazy load (withimport
) and then open it inside a newMaterial Dialog
The text was updated successfully, but these errors were encountered: