Sha256: c2b46103c57d8139ec42ac4d4296b332a1d19fd6dcd0f6278e81e9425330a8a7
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 Bytes
Contents
(function() { angular.module('Navigation') .provider('$menu', function() { var menuItems = []; this.menuItem = function(item) { menuItems.push(item); }; this.$get = function() { return { items: menuItems.sort(function(a, b) { if (a.priority == null) { a.priority = 0; } if (b.priority == null) { b.priority = 0; } return b.priority - a.priority; }) } } }); }).call(this);
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
voxality_core-0.1.0.1 | lib/generators/voxality_core/templates/app/assets/javascripts/modules/navigation/providers/Menu.js |