You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ng-repeat currently works in the following:
[span ng-repeat="value in values"]
{{$index}}
[/span]
where the specific element that has the ng-repeat is repeated.
The problem arises though when we want to repeat not just one specific element, but multiple. For example, if I wanted to repeat the following:
[span] {{$index}} [/span]
[div] {{$index}} [div]
I'd have to create some sort of container specifically for the ng-repeat. The thing is, the container itself will also get repeated. I feel this container making is redundant and adds unnecessary layers to the html.
It'd be nice if we could have an extension to the current ng-repeat along these lines:
Where the "ng-repeat-inner" would only repeat the descendants within itself, not including. This would save us from having to make superfluous containers purely for repetition.
The text was updated successfully, but these errors were encountered:
ng-repeat currently works in the following:
[span ng-repeat="value in values"]
{{$index}}
[/span]
where the specific element that has the ng-repeat is repeated.
The problem arises though when we want to repeat not just one specific element, but multiple. For example, if I wanted to repeat the following:
[span] {{$index}} [/span]
[div] {{$index}} [div]
I'd have to create some sort of container specifically for the ng-repeat. The thing is, the container itself will also get repeated. I feel this container making is redundant and adds unnecessary layers to the html.
It'd be nice if we could have an extension to the current ng-repeat along these lines:
[div ng-repeat-inner="square in squares"]
[span] {{square.index}} [/span]
[a] asd [/a]
[/div]
JSFiddle here: http://jsfiddle.net/fZz3W/12/
Where the "ng-repeat-inner" would only repeat the descendants within itself, not including. This would save us from having to make superfluous containers purely for repetition.
The text was updated successfully, but these errors were encountered: