title: Angularjs - does ng-switch have a content loaded event?
body: <p>I have a ng-switch with different contents, one of them is a Gallery and I have to set the JQuery event to all images after switch ng-switch-when=gallery content is ready, but not lucky because it's firing the event before the content is loaded. </p>
  
  <p>the gallery is the third ng-switch-when so I can't set the events with a ng-init.</p>
  
  <p>So,  does ng-switch have a content loaded event or directive?</p>
  
  <pre><code>&lt;a href="" ng-click="menuSelection='gallery';loadLibraryGallery();"&gt;GALER&amp;Iacute;A&lt;/a&gt;
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>$scope.loadLibraryGallery = function(){
  //I have to set this event to childrens after ng-switch-when=gallery is loaded
          $('.popup-gallery').magnificPopup();
  
      };
  </code></pre>
  
  <p>Any idea. Please
  Thank you.</p>