title: Ember - bind custom action on route
body: <p>Is there a possibility to add custom action (basically any piece of JS code) to the routing event?</p>
  
  <p>There is an application which needs to alter some part of the page "outside" of the app. Yes, that part of the page should be in the app, but it's not. So, I need to change the "outside" DOM a little on some routing events. For example, when I'm at the index state, there is an empty element somewhere, when I move to another state, that element changes its content to "Back" and gets active. Also, I would like to bind the ember routing action to onClick event on that element.</p>
  
  <p>I tried to find such thing but there seems to be nothing. I found this, but it does not solve my problem at all:
  <a href="https://stackoverflow.com/questions/11775735">How do I bind events directly to existing HTML, without using any kind of views, in Ember.js?</a></p>
  
  <p>Thanks for your time.</p>