selemxmn / ngx-print

:printer: A plug n' play Angular (2++) library to print your stuff
MIT License
161 stars 59 forks source link

Angular 9 - Not printing modal window #98

Open JustAnotherDev22 opened 4 years ago

JustAnotherDev22 commented 4 years ago

Describe the bug I have a modal window that I would like to print. I've added the code as per the documentation. However, when I click on the button nothing happens.

To Reproduce Steps to reproduce the behavior.

Here is the relevant code in my application:

parent html:

<app-smtbtms-case-management-edit #editCaseDetailModal (updateSuccess)="updateCaseDetailsResponse($event)"> </app-smtbtms-case-management-edit>

parent ts:

@ViewChild('editCaseDetailModal') editCaseManagementComponent: CaseManagementEditComponent;

child html:

`

`

app module:

Added to the import section.

Expected behavior modal window should print.

Screenshots

Desktop (please complete the following information):

Additional context Let me know if you need additional info. Thx

JustAnotherDev22 commented 4 years ago

Accidentally deleted from child html section:

`

`

Core121 commented 9 months ago

Are you still having this issue? I would check your console logs and make sure the section id is being found by the child component.