I have an array updating every second and I'm going through the advanced section with mapped arrays, and cannot complete the task. I'm stumped at what goes inside the updateTarget(updatedSource, target) {}
function. The comments and codepen's end there, and nothing is ever shown in the dom. The function is clearly getting called, but I don't know how to update a target with a new source.
Asked
Active
Viewed 104 times
3

Geek Devigner
- 349
- 2
- 12
-
could you post your code? – CodeIsLife Jan 23 '16 at 03:40
1 Answers
2
The signature and typical implementation of the updateTarget parameter is as follows:
function updateResult(itemRecord, itemComponent, index) {
itemComponent.setItemRecord(itemRecord);
}
I have created a complete demonstration of createMapping here.

Johan Gorter
- 1,253
- 10
- 13