Dynamic side menu


#1

is there any way to make dynamic side-menu? Let me explain what i mean with that. lets say that i have two elements/tabs in sidemenu-> “Info” and “Products”. Lets say that in sidemenu fi I touch “Products” element i would like that sidemenu would now display only products item and NOT “Info” and “Products”. Its is like mini navigation in side-menu.
Any help on pointer to some tutorial would be very helpful.


#2

Watch a $scope variable, and then use ngInclude to select the relevant template to render in the side-menu?

Or you can look at nested views in ui-router… but I think that would be the wrong way to go for this app.


#3

Do you mean to watch $scope with .apply()?
Great idea, thank you.