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 [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.
