Hi, I've watched video about Angular's directives, http://www.youtube.com/watch?v=WqmeI5fZcho, presented by Misko Hevery. He said that compile function should be used to do something only on template, it has no scope parameter, correct me if I'm wrong.
What if I want to write table directive that can be used this way: <table columns="columns" data="data"/> It is obvious that the directive needs Angular's scope to get a data, so: 1. Should creating table's elements, TR,TH and TD be done in a link function ? 2. Is it good approach, it will not be slow? Thanks Thanks Zlaja -- 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.
