I'm using AngularJS to display an image. The image's height and width is dynamic depending on the browser's height and width. How can I only display a div that contains the image only when the image is ready to be displayed?
<div id="container">
<img ng-src="{{media_list.cur}}" />
</div>
Do I need to use jQuery for this? I'd like to do as much as possible without any additional libraries (maybe I can use AngularJS's built-in jqlite or something)