I managed to solve that problem. Another question came up, imagine this 
example. 
I have a mainsection which consists of four views top-menu, top-pane, 
bottom-menu, 
bottom-pane. I would like to click on either menu (top or bottom) and swap 
the content 
of the corresponding content below without changing the content on the 
other pane.

-----top menu ----
------------------------

    top conent

------------------------

---bottom menu ---
--------------------------

   bottom content

-------------------------

Right now I have one state displaying all four views (topMenu, topContent, 
bottomMenu, bottomContent).
But how can I swap the content of each section independently?

The url for the state is: "home/dashboard"

Should I have two additional url-segments in order to toggle the subviews?
Like..... home/dashboard/topcontent/bottomcontent/ ??

where the segement "topcontent" and "bottomcontent" could change 
independently without changing the other panes content? 


.state('home.mainSection', {
                url: '/dashboard',
                views: {

                    'top-menu': {
                        templateUrl: 'js/app/layouts/home/top-menu.html',
                        controller: 'ContentCtrl'
                    },

                    'top-pane': {
                        templateUrl: 'js/app/layouts/home/profileinfo.html',
                        controller: 'ProfileCtrl'
                    },

                    'bottom-menu': {
                        templateUrl: 'js/app/layouts/home/bottom-menu.html',
                        controller: 'ContentCtrl'
                    },

                    'bottom-pane': {
                        templateUrl: 'js/app/layouts/home/maincontent.html',
                        controller: 'BottomPaneCtrl'
                    }
                }


Sorry for my newbie questions, but I really want to learn this.



Den torsdagen den 6:e februari 2014 kl. 14:43:21 UTC+1 skrev Sander Elias:
>
> Hi Daniel,
>
> Gazing into my crystal ball, I'll see, hmm, trouble with code... ;)
> If you post a plunk or a fiddle, one of us surely will get back to you!
>
> Regards
> Sander
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to