Components
Sections or areas of your app that are reactive to user input.
<cfscript>
// Data properties
data = {
"property1": "defaultValue",
"property2": "defaultValue"
};
// Computed properties
computed = {
"computedProperty" : function() {
// return something
}
};
// Actions
function action1() {
data.property1 = "another value";
}
</cfscript>
<!-- HTML Template -->
<cfoutput>
<div>
<h1>My Component</h1>
</div>
</cfoutput>Separating Component Definition and Template
Rendering Components
External Components
Passing Parameters
Using Parameters
Auto Population of Data Properties
Last updated