I'm fairly sure that HTML is case insensitive. You can have <div> or <Div>. So using camelcase is a bad idea there.
That said, it definitely is a gotcha, especially when you define a directive on your own. E On Aug 18, 2014 6:03 AM, "Wallace Turner" <[email protected]> wrote: > What is the reasoning behind using denormalizing the directive name when > using it in the html document? > > For example, ngBind can be defined in the following formats [1]: > > <span ng-bind="name"></span> <br/> > <span ng:bind="name"></span> <br/> > <span ng_bind="name"></span> <br/> > <span data-ng-bind="name"></span> <br/> > <span x-ng-bind="name"></span> <br/> > > > Why not also (or only): > > <span ngBind="name"></span> <br/> > > > Of course one can shout RTFM but this seems like a gotcha from the very > first line (ngApp vs ng-app) > > > > [1]: https://docs.angularjs.org/guide/directive > > -- > 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/d/optout. > -- 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/d/optout.
