title: In Angular.js, is it possible to replace an ng-switch directive element with its contents?
body: <p>I'm using a switch to conditionally include different content. I want the inner content (e.g. welcome directive) to replace the parent ng-switch element. I know that you can do this with custom directives using the replace=true configuration property, but is this possible to do with built in directives such as ng-switch?</p>
  
  <pre><code>&lt;div id="container"&gt;
      &lt;ng-switch on="tabIndex"&gt;
  
          &lt;welcome ng-switch-when="welcome"&gt;&lt;/welcome&gt;
  
          &lt;main ng-switch-when="main"&gt;&lt;/main&gt;
  
          &lt;help ng-switch-when="help"&gt;&lt;/help&gt;
  
      &lt;/ng-switch&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>For example, When the value of tabIndex is 'help', I want the following html to result:</p>
  
  <pre><code>&lt;div id="container"&gt;
  
      &lt;help&gt;&lt;!-- contents of help template --&gt;&lt;/help&gt;
  
  &lt;/div&gt;
  </code></pre>