title: Resolve on parent state doesn't run on each child state change
body: <p>I am building an <code>AngularJS</code> app (using <code>router-ui</code>) that uses a tab style navigation. The users page, for example, will have the following tabs:</p>
  
  <ul>
  <li>Listing (will always be the main tab and list all users. Upon selecting a user on this tab, the rest will be come <code>active</code></li>
  <li>Account Details</li>
  <li>Contact Details</li>
  <li>Notes</li>
  <li>etc</li>
  </ul>
  
  <p>Now, I am using a service called <code>entityIdPersistenceService</code> to remember the ID of the user selected on the listing tab. In my routes, I am doing something like the below to notify the child tabs of the selected userId (so they can grab the necessary data), however it seems like alot of repetitive code. Is there a better way to provide my selected id to all other tabs?</p>
  
  <pre><code>    resolve: {
          entityId: function(entityIdPersistenceService) {
              return entityIdPersistenceService.getId();
          }
      }
  </code></pre>
  
  <p>It seems like alot of repetitive code. I added it to the parent state, however it looks like the code only runs once on the parent state, and not on every child state change.</p>
  
  <p>Are there any better ways of doing something? Ideally id like to put this on the parent state and have it run at each route change.n</p>