Force ionic redraw a view


#1

Hi,

I am building an application that grabs an image from the camera and needs to display this image in a inside my view. (I then will give a UI to crop a part of this image, so I am overlaying a canvas ontop this img tag)

My problem is that the image is not rendered. But if a move the view (e.g. to reveal the left side menu) the image is rendered.
I guess this is an angular issue… however I thought that by setting the ng-src of the image tag this would have been rendered automatically.

do you have any hints ? where should I go and read/take some info?
thanks


#2

“$scope.$apply();” command should solve your problem


#3

Thank you for the reply!
I’ve just found this while reading deeper the angular js concepts.
thanks!