title: AngularJS: special ng-if for directive to be applied / not applied
body: <p>Let's say I have a block</p>
  
  <pre><code>&lt;div class="myclass" mydirective="mycontrol.param"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>that is repeatable (used) several times (but different by different parameters) in another directive.</p>
  
  <p>I need to add the conditional to <code>mydirective</code> so it is persists in the block based on kind of ng-if <code>true</code> or <code>false</code> values for it.</p>
  
  <p>What's the way to make it done?</p>
  
  <p>P.S. What actually <code>mydirective</code> does is adds some DOM elemenets into the div it belongs to.</p>