I am looking in building a simple email client and I am stuck at the point, where the client should ask if the user wants to see images/hide them on spam messages. Any approaches are welcome.
How to prevent images from loading within a 'container' with angularJS
You can use
$scope.toggleImage = false; // true - Show, false - Hide. By default hide image.
In View template
<img ng-src="" ng-if="toggleImage"> <a href="" ng-click="toggleImage = !toggleImage">Toggle Image</a>
Thanks @musically_ut for the correction.