title: Communication between directives
body: <p>my application has 2 directives :</p>
  
  <ol>
  <li>Signup </li>
  <li>CreateItem</li>
  </ol>
  
  <p>I want to call Signup from CreateItem if the user is not authenticated
  but I don't know how to call Signup Directive method from CreateItem Directive method.</p>
  
  <p>This is my code :</p>
  
  <pre><code>.directive('createitem', function($modal, $http, Global) {
  return {
  restrict: 'E',
  transclude: true,
  templateUrl : 'views/item/create.html',
  link: function(scope, elem, attrs) {
      scope.openCreateItemModal = function() {
      // I want to call openSignupModal if user not authenticated (Global.authenticated)
      }
  }}}
  .directive('signup', function($modal, $http) {
  return {
  restrict: 'A',
  transclude: true,
  templateUrl : 'views/signup/create.html',
  link: function(scope, elem, attrs) {   
  scope.openSignupModal = function() {
  
  }
  
  }}}; 
  </code></pre>
  
  <p>This is my view  (I want to inject join directive into createitem directive)</p>
  
  <pre><code>&lt;createitem join&gt;
  </code></pre>
  
  <p>What is the cleanest way to to that? </p>
  
  <p>Thanks.</p>