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

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -