title: Directive vs. service to share data from navigation panel
body: <p>I am confused about putting my navigation panel into directive or keep it as it is.</p>
  
  <p>I have navigation panel in html template (I've call this template because it is in separate file and can be reused) which is included into main view by ng-include.
  This template have separate controller and module. Main view that is invoked by ui-router also have separate controller. And now, I need to have some variable to store output of navigation template. And as far I understand, services are for sharing data between controllers.</p>
  
  <p>But what if my navigation would be directive? I.e <code>&lt;navigation ng-model="variable"&gt;</code>.
  Then it would be declared in main view and variable would be visible for that view, without another entity(service) for sharing data.</p>
  
  <p>Which approach is better?</p>