Skip to content

Instantly share code, notes, and snippets.

@designeng
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save designeng/389c9e0015ffe5f9fa75 to your computer and use it in GitHub Desktop.
Save designeng/389c9e0015ffe5f9fa75 to your computer and use it in GitHub Desktop.
define ->
class OrderInfoController
getSource: ->
source =
id: "1"
location: "Rome"
return source
define ->
$plugins: [
'wire/debug'
'wire/on'
'wire/dom'
'wire/dom/render'
'cola'
]
orderInfoModel:
create:
module: 'cola/Model'
ready:
"addSource": {$ref: "controller.getSource"}
controller:
create: "components/myComponent/controller"
@designeng
Copy link
Author

Strange, but this code does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment