I am trying to create a custom recursion directive. But it's not working I followed the approach defined here
Recursion in Angular directives
Here is the fiddle
Only the root menu items are present. The children are not present.
The JSON format of the menus are as shown in the fiddle.
{
menus : [
{
displayName : 'somename'
submenus : [
// array of menu objects
]
},
{
displayName : 'somename2'
submenus : [
// array of menu objects
]
}
]
}
How to resolve this ?