i am using this Directive in many places so i need to do dom manipulation in the directive
the directive is working fine...just i am not getting how to compile the Html file which i am loading via Ajax On Wed, Apr 29, 2015 at 3:05 PM, Sander Elias <[email protected]> wrote: > Hi Kiran, > > don't mix in jQuery stuff like you do there. Don't do dom manipulation at > all, unless there is no other way. > first thing, change your directive to a template directive. it will take > care of the compilation. > Then prepare you data, so you can render it easy in your template. > The code you showed is parsing the dom to manipulate it so it shows data. > That is not needed at al if you us angular. > > 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. > -- 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.
