angular-vs-repeat
angular-vs-repeat copied to clipboard
Compile directive inside ng-repeat
With this code, I don't see the element compiled:
<div class="repeater-container" data-vs-repeat>
<div ng-repeat="item in items">
<my-directive ng-model="item"></my-directive>
</div>
</div>
Vs-repeat can compile directives inside ng-repeat?
Yeah definitely. Could you create a sample fiddle?
Kamil Pękala
Dnia 21.04.2016 o godz. 11:35 David Táboas [email protected] napisał(a):
With this code, I don't see the element compiled:
Vs-repeat can compile directives inside ng-repeat?
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub
I have a directive in ng-repeat of which the link nor controller is never fired for items out of the initial visible range: fiddle . A simple app worked however. Maybe this has something to do with the nested ng-repeat in the directive itself?
I'm facing the similar problem. It works when directive has template specified, but where it doesn't work as expected is when directive has templateUrl specified. In this case it doesn't work first time, only works after template is fetched and in memory.