1st - I’m new to ember and I’m trying to understand how everything works yet.
2nd - I’ve searched on stackoverflow and here for a solutiion, but couldn’t find anything, probably because I don’t know exactly what is the term to look for =P
Well, the situation is as follow…
I have an API that I made before start using ember, and now I’m trying to use this API with my ember app, but when I try to use some of the properties from this API, if a internal function changes the property, ember throws an Uncaught Error like this:
Assertion Failed: You must use Ember.set() to access this property (of [object Object])
This only happens when I’m using a nested object, I’ve made this jsbin for better understanding.
Open the browser console panel, and you’ll can see the error when you click on the change button.
When I change the first property (a “direct value” assigned to ember) everything is ok, but the second one throws the error.
Is there any way to avoid this, it’s a known bug or something?
I need to keep the API as is, beacause it’s being used in other projects that doesn’t use ember.
Thanks in advance.