Maybe the title of the question is not clear.
What I want to do is to create a directive that I can use like this:
<menu-item title="var1" state="var2">
<menu-item title="var3" state="var4">
</menu-item>
<menu-item title="var5" state="var6">
<menu-item title="var7" state="var8">
</menu-item>
</menu-item>
</menu-item>
And the directive menuItem
will have to generate the proper html of course.