Search code examples
javascriptember.jscomputed-observable

Why does the following Ember.js code not update the given list?


I've been trying some things with ember and my latest test was to update a list based on external event. I have been given some other solutions but the one I came up with (which does not work - for reasons unknown to me) is:

jsBin

If anyone could tell me why this is not working It would be great.

Thanks, Jason


Solution

  • You have a scoping issue, fixed at link:

    http://jsbin.com/izunik/1/edit

    You were referring to "this" inside of set interval which is not the same as "this" in the view.