Improving the navigation by moving it all to a service, adding a generic icon

This commit is contained in:
Will Marshall
2014-03-28 12:15:08 +11:00
parent 12b1a1b0e9
commit e1465352d0
16 changed files with 91 additions and 27 deletions

View File

@@ -1,3 +1,6 @@
window.SidebarCtrl = Darkswarm.controller "SidebarCtrl", ($scope, $location) ->
$scope.sidebarPaths = ["/login", "/signup", "/forgot", "/account"]
$scope.active = ->
$location.path() in ["/login", "/signup", "/forgot"]
$location.path() in $scope.sidebarPaths