Exactly, first tried to get a nice looking DOM tree and ran into that problem (without the replace the code was OK)... but your learn a lot from such mistakes :)
Tnx for your help! Am Samstag, 13. September 2014 09:35:23 UTC+2 schrieb Sander Elias: > > Hi Anton, > > Replace is deprecated for good reasons! Internally angular puts hooks(hmm, > let call them hooks, not entirely what happens!) on the DOM. > for reasons that are more related to jQuery as to angular it is quite a > problem to replace the initial node. > Also, replace does not add anything, expect the DOM tree looking a little > bit nicer to the developer. (there are some *rare *edge cases where this > might matter tough!) > > Regards > Sander > > > -- 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.
