I believe your solution is a little wrong.
As mentioned, since it is using Angularjs, a framework that also uses jQuery in its code, there are certain points that should be aware when using them simultaneously.
Ideally, never use a jQuery inside a controller, and either being started directly on the page by changing the DOM.
jQuery can be better executed without interfering with the performance of the Angularjs when used within a directive within the LINK function and not within the controller.
I also believe that the best solution for you in this case if it is used angular, would be to use some lib/module or something that is written in Angularjs not to have any kind of interference or possible error x.
Possibly something is outside the Angular Digest cycle, or interfering directly causing the error.
Or the modal call, or the template.
I also believe that if the modal component is some angular js library, your template should follow the same pattern as the angular used to render it inside the modal and display the data correctly.
As already mentioned in the comments, one of the possible solutions would be used the most popular angula.bootstrap or maybe search for some other following google patterns as suggested by your screenshot.
Lumx is a framework for the design of interfaces based on google material and also written in English.
http://ui.lumapps.com/
The answer is a little big, but I hope I’ve helped.
Why not use some modal lib instead of using Jquery?
– DiegoAugusto
can you tell me any?
– alessandre martins
https://angular-ui.github.io/bootstrap/
– DiegoAugusto