I have an HTML template as follows:
<div id="expenses">
<submenu>
</submenu>
</div>
<div id="revenues">
<submenu>
</submenu>
</div>
I need to hold the submenu content in seperate variables. The following code works in angular:
var expenses = angular.element('#expenses')
However, I need to get one step further and get the submenu content in the variable. Something like:
var expenses = angular.element('#expenses>submenu')
But CSS selectors don't work in that function. How can I get the submenu contents?