jones jones -4 years ago 122
TypeScript Question

Angular2 dynamic template modal is not opening

I have implemented Angular2-Dynamic-Templates, every thing is same, but when i click on button to open a template on modal, template is created but can't open the modal, and no error is occurred.
The only change i have is:
I have to use

ngbModalContainer
on
template
tag of both
class-template.component.ts
and
custom-template.component.ts
, i think its missed on tutorial.
The main issue is modal is not opening.
bellow is my console:
enter image description here

Note: I'm using bootstrap4, i have changed css to force fade in/out.

Answer Source

Just comment ref.destroy(); on your template-service.ts

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download