Skip to:
// Path: /wires/NestedComponent.cfc component extends="cbwire.models.Component" { data = { "child": false, "index": 0 }; }
<!--- Path: /views/wires/nestedcomponent.cfm ---> <cfoutput> <div> <cfif not args.child> not a child <cfloop from="1" to="5" index="i"> #wire( "NestedComponent", { "child": true, "index": i })# </cfloop> <cfelse> child #args.index# </cfif> </div> </cfoutput>
This will just result in the output child 5.
Need to change how rendering is processed
// Path: /wires/NestedComponent.cfc component extends="cbwire.models.Component" { data = { "child": false, "index": 0 }; }
<!--- Path: /views/wires/nestedcomponent.cfm ---> <cfoutput> <div> <cfif not args.child> not a child <cfloop from="1" to="5" index="i"> #wire( "NestedComponent", { "child": true, "index": i })# </cfloop> <cfelse> child #args.index# </cfif> </div> </cfoutput>
This will just result in the output child 5.
Need to change how rendering is processed