So in the quickstart guide the name of the app is "angular2-quickstart".
If I want to apply a consistent selector name, then I would use " angular2-quickstart-app". This would reduce the likelihood of tags clashing, and allow me to look up the component definition file at a glance. Is this correct? I definitely agree that tutorials are better when they inform the user of alternative ways. I guess I'm wanting to also see best practices introduced and implemented as well. On Sun, Aug 7, 2016 at 11:15 PM, Christoph Zwerschke <[email protected]> wrote: > Am 08.08.2016 um 06:36 schrieb [email protected]: > >> This seems inconsistent to me. Why would we not match the file name, >> selector, and class name? >> > > Yes, that would be more consistent, but since the selector is the name of > a custom element tag, which should not collide with existing html tags or > third-party custom elements, it is custom to prefix it with she name of > your app and a dash. That's why it is called "toh-..." in the style guide. > "my-" is a bit lame, though. > > As a side note, I also find it sometimes confusing when tutorials make > names too generic or consistent because then it can be unclear whether this > consistency is mandatory or not, and which name refers to which entity, > since you're just learning the concepts. > > -- Christoph > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit https://groups.google.com/d/to > pic/angular/EXsxkIKDV6M/unsubscribe. > To unsubscribe from this group and all its topics, 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. > -- Chad Nelson 928-274-1546 -- 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.
