Last active
August 29, 2015 14:01
-
-
Save designeng/389c9e0015ffe5f9fa75 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define -> | |
class OrderInfoController | |
getSource: -> | |
source = | |
id: "1" | |
location: "Rome" | |
return source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Strange, but this code does not work.