I am facing a small issue here im getting the below dynamic data
{
"Name": "Steve",
"Id": 37,
"email": "steve@hotmail.com",
"User": 10,
"DevId": "A7E6E6FE7060",
"AllowedMenu": [
{
"Name": "Main",
"Id": 6,
"Component": "MainComponent",
"IsVisibleAsMenu": true
},
{
"Name": "SessionData",
"Id": 7,
"Name": SessionComponent,
"IsVisibleAsMenu": false
},
{
"Name": "LoginData",
"Id": 8,
"Name": "LoginDataComponent",
"IsVisibleAsMenu": true
}
],
"AllowedOptions": [
{
"Name": "UpdatedData",
"Id": 9
},
{
"Name": "PreviousData",
"Id": 10
}
]
}
After loggin in by using username and password im getting the above response by using that i have to build the dynamic side navigation. At present im following a approach by using the switch case in login page im mentioning each and every component and if the case is correct then it is going to that particular page.
below are my issues
-
Are there any other approaches for getting Dynamic Side navigation ? after login based on the response the side navigation is created.
-
How can i create Sub menus in dynamic side navigation?