> Why would you avoid `<my-directive></my-directive>` in the first place? It > is valid HTML5. > Then there is this. In a SPA, the DOM is just a part of the internal state > of your application. Are you also worried on how your variables are > represented in memory? Or on how your database looks if you open it using > notepad? > > I have the same issue as Ben. Just because I decide to refactor a piece of HTML into a separate component for readability or reusability doesn't mean I want to add an *extra* element around it in the final HTML. The comparison with variable representation in memory is only partly correct: 1) C / C++ programmers are indeed worried about this, although in javascript, ruby, java etc. it doesn't matter because it's transparent for the programmer, 2) I don't care how the DOM is represented in memory, but changing the DOM *itself* (not just its representation) does have an effect on other source code, such as CSS selectors, or in Ben's example: the relationship with a parent element.
-- 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.
