angular-vs-repeat icon indicating copy to clipboard operation
angular-vs-repeat copied to clipboard

Compile directive inside ng-repeat

Open davidtaboas opened this issue 8 years ago • 3 comments

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?

davidtaboas avatar Apr 21 '16 09:04 davidtaboas

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

kamilkp avatar Apr 21 '16 10:04 kamilkp

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?

stefchri avatar Nov 08 '16 10:11 stefchri

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.

nemanja-popovic avatar Apr 17 '17 16:04 nemanja-popovic