0

I understand that ng-repeat is a 'directive', and usually directives have two phases: 'pre' (drilling down into dom) and 'post' (coming back up).

In which of these phases does ng-repeat create the new elements (clones)?

dsdsdsdsd
  • 2,880
  • 6
  • 41
  • 56

1 Answers1

0

In the PostLink phase, the template is linked to the Scope and the View is Updated, until then, there are no alterations to the html.

Reference: http://odetocode.com/blogs/scott/archive/2014/05/28/compile-pre-and-post-linking-in-angularjs.aspx

Italo Ayres
  • 2,603
  • 2
  • 16
  • 20