mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-02-05 22:19:26 +01:00
26 lines
539 B
JavaScript
26 lines
539 B
JavaScript
'use strict';
|
|
|
|
// Configuring the Articles module
|
|
angular.module('articles').run(['Menus',
|
|
function(Menus) {
|
|
// Add the articles dropdown item
|
|
Menus.addMenuItem('topbar', {
|
|
title: 'Articles',
|
|
state: 'articles',
|
|
type: 'dropdown'
|
|
});
|
|
|
|
// Add the dropdown list item
|
|
Menus.addSubMenuItem('topbar', 'articles', {
|
|
title: 'List Articles',
|
|
state: 'articles.list'
|
|
});
|
|
|
|
// Add the dropdown create item
|
|
Menus.addSubMenuItem('topbar', 'articles', {
|
|
title: 'Create Articles',
|
|
state: 'articles.create'
|
|
});
|
|
}
|
|
]);
|