2021年3月7日星期日

Content (with Controller, etc) loaded inside Bootstrap-modal is not being recognized by AngularJS at all

I have a legacy application that is using the Bootstrap modal plugin (v3) to load content from the server. In one of these pages, there is an angular controller with a repeater.

It looks like when this content is loaded via the Bootstrap modal data toggle, AngularJS does not bind at all in this content. It's not doing anything, my guess is that ANgular is not even aware that the DOM changed? But how do I force this "compilation" after the Modal is shown? This way of loading content is everywhery on this application so a major refactor to "properly" launch popups using AngularJS itself is not an option.

https://stackoverflow.com/questions/66500394/content-with-controller-etc-loaded-inside-bootstrap-modal-is-not-being-recogn March 06, 2021 at 06:28AM

没有评论:

发表评论