javascript - Load multiple views in angular modal window with or without ui-route -


i have requirement have load multiple view inside model window. there set of tabs icons in it, , on clicking icons views should change inside model window. once model window closed, should state before opening model window.

i tried ui-route sub states using ui-sref getting either new page replaced on same screen or blank page instead of getting model window.

below sample screen want make. here, want navigate through app, games, movies, etc. , load respective screens. on closing model window, should view is.

enter image description here

please suggest me approach achieve it. in advance.

have tried using ng-include inside modal? in below code "selection" should changed according sidebar of modal. div representing switchable content written as

<div class="main-content" ng-switch on="selection">     <div ng-switch-when="movies" >         <ng-include src="'movies.html'"></ng-include>     </div>     <div ng-switch-when="apps">         <ng-include src="'apps.html'"></ng-include>     </div>     .     .     .     . </div> 

Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -