Manish example was perfect and your input is very helpful too. Thank you both.
On Friday, May 27, 2016 at 12:15:02 AM UTC-5, Sander Elias wrote: > > Hi Ofer, > > What Manish is trying to tell you is that you can put a argument on your > doc-grid element so you don't have to query the DOM. > While it is technically possible to do what you ask, I would advise > against it. Why? you might ask. Well, a couple of reasons. > Firstly, separation of concerns. Your way of doing this, is putting part > of the business logic into the template. Even worse, something that no one > might notice will have an significant meaning (namely the place your > component is put). > secondly, If you do this, your code will be tightly coupled to the DOM, > that means you can't use server-side rendering or web workers i, or other > rendering engine's(nativescript for now). > > 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 angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.