Ember js component observer does not work

I have a scenario in emberjs component where the observe does not get hit. I figured out the reason as “the component is not yet inserted when the component property being observed is set.”

My questions is, couldn this be handled in a better way in ember js?

Better explanation can be found in the below jsbin`s.

Not working Scenario

Working scenario

1 Like

This is covered in the documentation:

You are missing the on init.

http://emberjs.com/guides/object-model/observers/

2 Likes

yeah thanks i already started using it : )

1 Like