The menu is located outside a <div> block which is rendered via UI Router's ui-view.
In order to modify the menu according to the state parameters, I need access to the current state parameters from within the menu's controller, but the $stateParams variable is an empty object when used outside the ui-view part.
How can I access them?
angular.module('myapp').controller('MenuCtrl', ['$scope', '$rootScope', '$stateParams', '$meteor', '$filter',
function($scope, $rootScope, $stateParams, $meteor, $filter) {
// ... $stateParams equals {}
}
]);
$rootScope