I think your solution is a bit wrong.
As mentioned, since you are using angularjs, a framework that also uses jQuery in your code, there are certain points that you should be aware of when using them simultaneously.
Ideally, never use a jQuery inside a controller, and or be started directly on the page by changing the DOM.
jQuery can be best executed without interfering with the performance of 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 since it is used angular, would be to use some lib / module or something that is written in angularjs so as not to have any kind of interference or some possible x error.
Possibly something is outside of the angle 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 library js, your template should follow the same pattern that angular uses to render it within the modal and display the data correctly.
As already mentioned in the comments, one of the possible solutions would be to use the most popular angula.bootstrap or maybe to look for some other following the standards of google as suggested by your screenshot.
LumX is an interface design framework based on google material and also written in angularjs.
link
The answer is a bit big, but I hope I have helped.