In Angular 2 I understand very bad. It is difficult to put the right question. If something goes wrong, please clarify in the comments.

The essence of the problem is this. There is a Semantic UI, I find a modal window and call it ...

jQuery(this.elementRef.nativeElement).find('.ui.basic.modal#enter-modal').modal('show'); 

The window is displayed. When I close, I cannot open the modal window a second time. I suspect that after closing, Angular 2 deletes it from the DOM tree. How to make it so that the modal window can be opened two or more times?

  • Do not use jQuery to manipulate the DOM. Why do you need an angular in the project? - Vladimir Gamalyan
  • @VladimirGamalian jQuery can be used together with Angular2. How do you, for example, make a DragnDrop or at least a modal window too, without DOM manipulation? And if there is a manipulation with the DOM, then you can use jQuery. Another thing is that you have to do everything with the mind. - Alexandr
  • one
    Perhaps that removes it, make a minimal example with an error in order to understand how it works for you. Toda will be easier to find an error. - Alexandr

0