There’s a currently-undocumented pair of directives, ng-if-start and ng-if-end, that you can use for this. They behave analogously to the documented ng-repeat-start and ng-repeat-end directives, and you can see the unit tests for them if you like.
For example, given the following code:
<ul>
<li ng-if-start="true">a</li>
<li>b</li>
<li>c</li>
<li ng-if-end>d</li>
<li ng-if-start="false">1</li>
<li>2</li>
<li>3</li>
<li ng-if-end>4</li>
</ul>
the first four lis will be shown and the final four lis will be hidden.
Here’s a live example on CodePen: http://codepen.io/anon/pen/PqEJYV
There are also ng-show-start and ng-show-end directives that work exactly the way you would expect them to.