angularjs - Carousel slide effect with ng hide/show and ng-animate? -


i have slider type carousel 2 section containers can slide left , right. in developed version have images inside 1 section container. problem i'm experiencing because images server take while load i'm finding when user clicks button page being added dom again (due ng switch) , having reload images.

my question: there way use ngif or hide/show instead page setting display: none when hidden page containers not shown not removed dom?

  <!--animate-->   <div ng-animate="{enter: 'enter', leave: 'leave';}" ng-switch on="par.selection">     <!--page1-->     <div class="page page1" ng-switch-when="settings">         <b>page 1</b><br><br>         <button  ng-click="par.selection = 'home'; go('front');"  >go page 2</button>     </div>      <!--page2-->     <div class="page page2" ng-switch-when="home">         <b>page 2</b><br><br>         <button  ng-click="par.selection = 'settings'; go('back');"  >go page 1</button>     </div>    </div> 

plunkr here: link

i made above example blog visited phew days ago can no longer seem find above example works using ng-switch method.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -