Adding ability to show and hide menu items

This commit is contained in:
Rob Harrington
2014-11-28 14:38:28 +11:00
parent eb2a6f0ef5
commit 76acd706ea
7 changed files with 133 additions and 14 deletions

View File

@@ -15,8 +15,8 @@ describe "menuCtrl", ->
# ShippingMethods =
# shippingMethods: [ { id: 1 }, { id: 2 }, { id: 3 }, { id: 4 } ]
inject ($controller, _SideMenu_) ->
scope = {}
inject ($rootScope, $controller, _SideMenu_) ->
scope = $rootScope
SideMenu = _SideMenu_
spyOn(SideMenu, "select").andCallThrough()
spyOn(SideMenu, "setItems").andCallThrough()