javascript - Event for controller changing model in Ember? -


Is there an event or hook that should be used to capture when a controller is initiated immediately Or is there a specific route?

I have already tried at init () - but my controller has been instituted for the life of the application only once, but on the basis of many Supports models. I need to capture, when the controller's model changes, or after a few moments when changing the route.

I have also tried to establish a calculated property, but it is not really suitable because

Any help is greatly appreciated .


EDIT: Ah! I fully point out the fact that I can set the view () on my work so that the models will change.

So, my answer was to do the following:

  Dependency: function () {console.log ('model has changed'); // ... other stuff ...} .observes ('model')  

From my edit:

Ah! I totally point out the fact that I can set an overview () on my function, so that models will change.

Then, my answer was the following:

  Dependency: function () {console.log ('Modality has changed'); // ... other stuff ...} .observes ('model')  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -