Sharing properties across the application

Hope this helps and I am not sure it’s the best way but this is how I do it from routes to components and other routes.

/someRoute.js/

 export default Ember.Route.extend({
   afterModel: function(){
     this.set('riverClass','move-1 step-1');
     this.container.lookup('component:river-state').set('riverClass','move-1 step-1');
   },
   actions: {
     didTransition: function(){
       this.container.lookup('component:time-remaining').initTimer(5.0);
     }
   }
 });
1 Like