SteveSanderson/knockout — Issue #297: Explain in mapping's documentation how to fill an array after it is initialized
Author: kappa7194
Created: 2012-01-27 16:39:25+00:00
State: open

This issue is based on a [Stackoverflow question] I asked today.

I think it would be useful to expand the mapping's documentation to explain how can you fill an array property after it is initialized.

Note how `self.items` must be initialized with `ko.mapping.fromJS([]);` and **not** with `ko.observableArray();` as using the latter won't work, I haven't been able to find this in the documentation (feel free to point me to it if I missed it).

[Stackoverflow question]: http://stackoverflow.com/questions/9035673/knockouts-mapping-breaks-observable-arrays