2

i have the following ng-repeat code:

<div ng-repeat="item in items">{{item}}</div>

is there a way to programatically get into a javascript variable the 'final' html output of each of the repeated items instead of rendering it on the page?

hope that's clear enough.

jon snow
  • 3,062
  • 1
  • 19
  • 31
geevee
  • 5,411
  • 5
  • 30
  • 48
  • 1
    possible duplicate of [Geting ng-repeat to work inside of AngularJS's $interpolate service](http://stackoverflow.com/questions/20911214/geting-ng-repeat-to-work-inside-of-angularjss-interpolate-service) – Donal May 12 '15 at 09:56
  • 1
    What does that mean "'final' html output"? Do you want to store the HTML of interpolated `{{item}}`? – New Dev May 12 '15 at 13:47
  • yes, store it and prevent it from being rendered on the page. but i think the best thing i can do is to implement a custom element -like- ngRepeat. – geevee May 13 '15 at 04:57

0 Answers0