如何将模块菜单项的顺序改为mean.io?

我已经将我的应用程序的每个模块添加到app.js文件的mean.io菜单中,如下所示:

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

所有的模块都显示在我的菜单中,但顺序是错误的,怎么能改变这个顺序?

您需要指定要添加的菜单的顺序。

例如:

 function menuConfig(Menus) { Menus.addMenuItem('topbar', { title: 'Cuentas', state: 'accounts', type: 'dropdown', roles: ['*'], position: 1 }); } 

您需要使用属性>>位置。

position(可选;默认值:0) – 指定外观的顺序。