angularjs - How to change order of the menu items of the modules into mean.io? -


i had added each module of application menu of mean.io, of app.js file this:

theme.menus.add({     title: 'theme example page',     link: 'theme example page',     roles: ['authenticated'],     menu: 'main' }); 

all modules shown in menu, order wrong, how can change order?

you need specify order of menu adding.

for example:

function menuconfig(menus) {    menus.addmenuitem('topbar', {       title: 'cuentas',       state: 'accounts',       type: 'dropdown',       roles: ['*'],       position: 1     }); } 

you need use attribute >> position.

position (optional; default: 0) - specify order of appearance.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -