Starting to restructure data injection

This commit is contained in:
Will Marshall
2014-07-18 11:21:51 +10:00
parent 33611ddb20
commit 562f8dbd4e
9 changed files with 61 additions and 17 deletions

View File

@@ -2,6 +2,8 @@ Darkswarm.factory 'Cart', (CurrentOrder)->
# Handles syncing of current cart/order state to server
new class Cart
order: CurrentOrder.order
line_items: CurrentOrder.order.line_items
constructor: ->
console.log @order.line_items
# How to structure this?

View File

@@ -13,7 +13,7 @@ Darkswarm.factory 'Products', ($resource, Enterprises, Dereferencer, Taxons) ->
@products = $resource("/shop/products").query (products)=>
@extend()
@dereference()
@loading = false
@loading = false
@
dereference: ->