@williamhaley wrote:
I'm not sure I understand
ArrayProxy
.I'm trying to extend
ArrayProxy
, and I'm usingpushObject
to add content to my array. I see thecontent
getting updated, but for whatever reason thelength
of the array does not seem to accurately reflect the number of contents like I'd expect.https://ember-twiddle.com/d40f74211eaf32aa2202770003cfbb5b?openFiles=templates.application.hbs%2C
I feel like I'm probably missing something simple. The docs say ArrayProxy is a concrete implementation, but do I need to implement
length
myself?
Posts: 3
Participants: 2