slush-y
Version:
A slush generator for Best Practices with AngularJS Fullstack applications.
22 lines (18 loc) • 568 B
JavaScript
;(function(){
'use struct';
angular
.module('core')
.controller('SideBarCtrl', SideBarCtrl);
/* @inject */
function SideBarCtrl($scope, $location, $state, Auth, Menus) {
$scope.isLoggedIn = Auth.isLoggedIn;
$scope.menu = Menus.getMenu('topbar');
$scope.isCollapsed = true;
$scope.references = [
{title: 'Angularjs Style Guide', link: 'https://github.com/johnpapa/angularjs-styleguide'}
];
$scope.isActive = function(route) {
return route === $state.current.name;
};
}
}).call(this);