I'm facing the following issue: I'm working with Angular1.x and I have a subpage with small, clickable images and some other stuff below these imgs.
Only the images should be visible, all the other things should be hidden.
When the user clicks on an image, this hidden-visible has to flip, so the whole image session goes hidden and the content below comes visible.
I have a jQuery solution, but I'm seeking a more semantic one with Angular.
(function($){ $(document).ready(function(){ $('.showOverlay').click(function(){ $('#container').hide(); $('#box').show(); }); $('.hideOverlay').click(function(){ $('#container').show(); $('#box').hide(); }); }); })(jQuery);
I hope this piece of code explains the idea behind.