hi Shankar, Don't use compile unless you have no other means possible to accomplish the thing you think you need to use compile for! And no, it's way better to do all in the controller indeed. You really should read through the style-guide <https://github.com/johnpapa/angular-styleguide> at least once. Even if you don't understand all of it yet, it will all fall into place later on for you.
Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
