Hi Guys
A couple of things here - realise that this isn't the ideal way to do this.
I have a modal popup that I want to populate with html depending on what 
was clicked in the main window. So for that I am using something like this
$scope.htmlString = $sce.trustAsHtml('<div class="ccc"><ul 
class="comments-ul"><li ng-repeat="comment in comments" 
ng-model="comments">author<p>comment.snippet.topLevelComment.snippet.textDisplay</p></li></ul></div>'
);

It renders just the one li element though comments is an Array (in the 
scope this code is in a controller) with 4 items. Is this because ng-repeat 
cant be used in this way.
What is a better way to do it please.
I can imagine this happens because at compile or run time is when the 
repeats and things happen and as this is post user interaction it may be 
too late..
thanks

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to