Working sliding panel in basic form

This commit is contained in:
Will Marshall
2014-03-20 14:22:52 +11:00
parent d954a8f4e4
commit 0cabc2eb4d
8 changed files with 70 additions and 13 deletions

View File

@@ -1,11 +1,9 @@
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 != ""
$scope.active = ->
return "active" if $scope.active_sidbar != null and $scope.active_sidebar != ""