Skip to content

Instantly share code, notes, and snippets.

@designeng
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save designeng/389c9e0015ffe5f9fa75 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
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