title: Passing ng-model in nested directives
body: <p>I want to pass my ng-model from the 'outer-directive' to an 'inner-diretive' (which is contained in the outer-directive template).</p>
  
  <p>What is the correct way for doing it?</p>
  
  <p>HTML code:</p>
  
  <pre><code>&lt;body&gt;
      &lt;outer-directive ng-model="prop" /&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>and directive code:</p>
  
  <pre><code>angular.module('app', []).directive('outerDirective', function(){
      return {
          template: '&lt;inner-directive ng-model="prop" /&gt;',
          link: function() { ... }
      }
  });
  </code></pre>