In canJs we use can-value to bind values of an element to controller.
//In controller
scope.attr("parameter") // It will give the value
//In mustache
<input type="text" can-value="parameter"/>
But how do we bind values of dynamically generated components to controller? I tried the following way
//In mustache
{{each arrayValues}}
<input type="text" can-value="parameter{{@index}}"/>
{{/each}}
but following is undefined
scope.attr("parameter1")