Answer the question
In order to leave comments, you need to log in
AngularJs - how to solve the problem with modal window and data binding?
Sandbox
What should happen:
when choosing a picture, a modal (bootstrap window) should appear with this picture itself,
and the ability to edit it (i.e. Jcrop angularJs), followed by sending this picture to the Json server, for example (you can simply transfer the same picture ( i.e. entirely) and coordinates).
How it works at the moment, a window opens (after selecting a picture), but there is no picture or even links to it (perhaps this is due to the fact that compilation takes place at the time the page is loaded, and the photo is already selected after the user) and all internal blocks in modal-bodies are hidden in addition (something like the ng-hidden class is hung).
Has anyone encountered a similar issue, please share?
Answer the question
In order to leave comments, you need to log in
Here, read, it should help if the problem is in the compilation
docs.angularjs.org/api/ng/service/$compile
Firstly, they confuse manipulations with the DOM in the controller, it's not "angular" :)
Secondly, use UI Bootstrap and I don't think you will have such problems.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question