Can be used ng-repeatto achieve the following compiled DOM:
<div class="container">
<div ng-repeat="item in items">Item 1</div>
<div ng-repeat="item in items">Item 2</div>
<div ng-repeat="item in items">Item 3</div>
<div class="wrapper">
<div ng-repeat="item in items">Item 4</div>
<div ng-repeat="item in items">Item 5</div>
</div>
</div>
i.e. to have the last n elements wrapped in another element.
This may seem like a strange request, and I understand that it would be trivial to achieve this using two directives ng-repeat. However, it should be the only one ng-repeatso that I can move elements to and from the shell without adding or removing them from the DOM (as described here ).
, , - , .wrapper overflow:hidden javascript top . , , , - . , clip , .
, ng-repeat?