jeudi 29 décembre 2016

How can I set a property inside route deactivate to use inside controller?

I have a ember route as follows which uses deactivate function to set some properties when route deactivation.

   export default Ember.Route.extend({
       deactivate: function() {
        this._super();
        this.set('scrollSelector',mainContainer);
      // need to set property here and use it inside controller
    }
    });

How can I set property inside deactivate method to be used inside controller level. ? Appreciate any help.




Aucun commentaire:

Enregistrer un commentaire