Wikified notes from etherpad of Community Meeting of 8th July 2015 (original at https://beta.etherpad.org/p/Infusion_Community_Meeting_8-7-15 )
Introduction to Infusion
...
Code Block | ||||
---|---|---|---|---|
| ||||
fluid.defaults("examples.simpleRelay", { gradeNames: "fluid.component", components: { celsiusHolder: { type: "fluid.modelComponent", options: { model: { celsius: 22 } } }, fahrenheitHolder: { type: "fluid.modelComponent", options: { modelRelay: { source: "{celsiusHolder}.model.celsius", // IoC reference to celsius model field in the other component target: "{that}.model.fahrenheit", // this reference could be shortened to just "fahrenheit" singleTransform: { type: "fluid.transforms.linearScale", factor: 9/5, offset: 32 } } } } } }); |
From Chat:
Alan: sequential intention considered harmful!!