Pawel, Thank you for the clarification and prompt reply.
Regards, Pete On Thursday, July 30, 2015 at 8:49:14 AM UTC-4, Pawel Kozlowski wrote: > > Hi! > > It is a browser that lower-cases HTML attributes before Angular can do > anything about it. This makes sense since HTML is not case-sensitive > and not case-preserving. > To work-around this we've got convention in place: you can declare > variables with mixed-case like this: > > <input #txt-to-do (keyup)="txtTodoKeyupHandler($event)"> > > Hope this helps, > Pawel > > > On Thu, Jul 30, 2015 at 2:41 PM, Pete Moss <[email protected] > <javascript:>> wrote: > > Using 2.0.0-alpha.32 and I am finding that using local variable names > that > > are not all lowercase is problematic. Consider: > > > > <input #txtToDo (keyup)="txtTodoKeyupHandler($event)"> > > <button (click)="addTodo(txtToDo.value)">Add Todo</button> > > > > > > When I look at the DOM in Chrome I see: > > > > <input #txttodo="" (keyup)="txtTodoKeyupHandler($event)" > class="ng-binding"> > > <button (click)="addTodo(txtToDo.value)" class="ng-binding">Add > > Todo</button> > > > > Somewhere along the way txtToDo was forced to lowercase. > > > > Is this a "feature" or a bug? > > > > > > -- > > 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. > > > > -- > AngularJS book: > http://www.packtpub.com/angularjs-web-application-development/book > Looking for bootstrap-based widget library for AngularJS? > http://angular-ui.github.com/bootstrap/ > -- 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.
