Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seems that case sensitive properties doesn't work #1547

Closed
votingsystem opened this issue May 15, 2015 · 1 comment
Closed

seems that case sensitive properties doesn't work #1547

votingsystem opened this issue May 15, 2015 · 1 comment

Comments

@votingsystem
Copy link

In this example 'lowerprop' works as expected and 'caseSensitiveProp' doesn't get its value

 <dom-module id="user-view">
        <template>
            First: <span>{{caseSensitiveProp}}</span><br/>
            Last: <span>{{lowerprop}}</span>
        </template>
    </dom-module>
    <script>
        Polymer({
            is: 'user-view',
            properties: {
                caseSensitiveProp: String,
                lowerprop: String
            }
        });
    </script>

    <user-view caseSensitiveProp="sValue" lowerprop="lValue"></user-view>
@arthurevans
Copy link

Try:

<user-view case-sensitive-prop="sValue" lowerprop="lValue"></user-view>

For an explanation, see:

https://www.polymer-project.org/0.9/docs/devguide/properties.html#property-name-mapping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants