fix: allow creation of var with camelCased names

Closes #957
This commit is contained in:
Pawel Kozlowski
2015-03-13 22:44:42 +01:00
committed by Misko Hevery
parent 28aa7466bd
commit 59a1f836a2
2 changed files with 18 additions and 1 deletions

View File

@ -134,7 +134,7 @@ export class CompileElement {
// by the "value", or exported identifier. For example, ng-repeat sets a view local of "index".
// When this occurs, a lookup keyed by "index" must occur to find if there is a var referencing
// it.
MapWrapper.set(this.variableBindings, variableValue, variableName);
MapWrapper.set(this.variableBindings, variableValue, dashCaseToCamelCase(variableName));
}
addEventBinding(eventName:string, expression:AST) {