Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

attributes in camelCase don't work

$
0
0

When an attribute is written in camelCase and passed down from parent component to sub-component, the sub-component will not render / receive it.

<subcomp scopevar="someThing.scopeMember"><div>Sub, lowercase: {{scopevar}}</div></subcomp> ===> this works

<subcomp scopeVar="someThing.scopeMember"><div>Sub, lowercase: {{scopeVar}}</div></subcomp> ===> this won't work


Check the following fiddle: http://jsfiddle.net/xKc3H/363/


Viewing all articles
Browse latest Browse all 3491

Trending Articles