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

can we display the properties as attributes? #82

Open
marcus7777 opened this issue Mar 26, 2016 · 2 comments
Open

can we display the properties as attributes? #82

marcus7777 opened this issue Mar 26, 2016 · 2 comments

Comments

@marcus7777
Copy link

Description

when I'm teaching people about polymer they often end up copying and pasting the property into the attribute not knowing that HTML needs to have hyphens put before each capital letter and then HTML attributes are case independent.

Expected outcome

Maybe we could show Booth or if we can only show one please can we show the HTML version because if you copy and paste the HTML version into JavaScript you leave getting error message no error messages of course shown in HTML due to it not necessarily being in error.

Actual outcome

people who copy and paste properties interactive buttes end up with nothing happening until they work out what they've done let's speed up the process by showing the HTML version too

Live Demo

https://drive.google.com/file/d/0B2sFtTur-E_CSXNjcEVyREx1d2c/view

@robdodson
Copy link

I think this sounds like a good proposal. I can definitely understand the confusion around the camelCase to dash-case conversion.

@justinfagnani @garlicnation what do you guys think?

@arthurevans
Copy link
Contributor

Duplicate of PolymerElements/iron-component-page#32 (although probably more appropriate for it to be filed here).

I do think we should show both forms. I think we kind of stalled out earlier trying to figure out the exact design for that.

Showing "Attribute: foo" for each and every property might look a little repetitive (esp. since most of them are identical) but if we only show "Attribute: foo-bar" on the camelCase props, people might wonder why the other ones don't have attributes.

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

3 participants