>So using camelcase is a bad idea there.
So then accept ngBind or ngbind. 

My guess is:
ngBind - goes against the convention to use lower case for html [1]
ngbind - not as readable

The jury still seems to be out on this one with regard to camelCasing in 
element/attribute names thus I assume the spec writers were against it so 
chose not to support ngBind/ngbind lest the public use it!


[1]:http://stackoverflow.com/questions/1074447/case-conventions-on-element-names




On Monday, 18 August 2014 21:44:12 UTC+8, Eric Eslinger wrote:
>
> 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] 
> <javascript:>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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.

Reply via email to