title: angular ng-if for opening and closing tag but leave contents alone - optional tag
body: <p>I have hit this a couple times, where I want to selectively render a tag on a condition but leave the contents. My use case is a directive when I have an optional link, so I want to render the opening and closing <code>&lt;a&gt;</code> tags but leave the contents alone in either case.</p>
  
  <pre><code>&lt;a ng-if="condition"&gt;&lt;p&gt;Render me always&lt;/p&gt;&lt;/a&gt;
  </code></pre>