Yeah, bit late now I'm afraid. But thanks for helping. Always great to contribute to the community.
On 6 March 2014 09:41, Alex Ford <[email protected]> wrote: > Couple years late, but this question showed up as the first result from my > Google search so here you go: > > angular.element(someElem).html(''); > > On Saturday, December 8, 2012 1:13:26 PM UTC-7, Richard Kennard wrote: >> >> Hi guys, >> >> Thanks for doing an amazing job with Angular! >> >> I note that Angular's jqLite's 'element'... >> >> http://docs.angularjs.org/api/angular.element >> >> ...does not support JQuery's 'element.empty()'... >> >> http://api.jquery.com/empty/ >> >> ...what is the equivalent? I tried 'element.children().remove()' and that >> seems to work, but I'm worried that is inefficient? In particular JQuery >> talks about using .empty() to "avoid memory leaks". Is >> 'children().remove()' safe to use? >> >> Regards, >> >> Richard. >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/S2W4XIyo4oQ/unsubscribe. > To unsubscribe from this group and all its topics, 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/groups/opt_out. > -- 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/groups/opt_out.
