Starting on the sidebar

This commit is contained in:
Will Marshall
2014-03-20 13:54:59 +11:00
parent 6e5c93526c
commit d954a8f4e4
3 changed files with 20 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
window.SidebarCtrl = Darkswarm.controller "SidebarCtrl", ($scope, $location) ->
$scope.active_sidebar = $location.path()
$scope.$watch ->
$location.path()
, ->
$scope.active_sidebar = $location.path()
$scope.visible = ->
$scope.active_sidebar != null and $scope.active_sidebar != ""