I have the following menu made with materializeCss but a friend recommended to use angular-material, examples of angular material there is one similar to mine and I have not been able to reproduce because the menu is dynamically created according to user permissions. I appreciate if you can tell me how it's done
Asked
Active
Viewed 112 times
-2
-
1How what is done? Question is too broad. Narrow it down to specifics and show the code you have problems with – charlietfl Jan 13 '16 at 17:31
-
https://stackoverflow.com/questions/49860471/how-to-add-checkbox-to-angular-menu How to add checkbox to angular menu please help – Priya Apr 17 '18 at 14:50
1 Answers
0
easiest way of doing it For right section: you can use JSON in your controller such as
$scope.jsonTest=[
{
imagePath:"",
title:"",
userPermission:["admin","superAdmin"]
},
{
imagePath:"",
title:"",
userPermission:["admin"]
}
];
and in your html file
you can use
<div ng-repeat="item in jsonTest" >
<div ng-show="item.indexof(userRole) > 0">
....(display content)
</div>
</div>

Gourav Soni
- 75
- 2
- 11
-
I refer is the html part, so as to create menus, will tell you that the logo on the left and right buttons. In materializeCss is added ` – Cristian Jan 13 '16 at 19:18
-