iron-meta icon indicating copy to clipboard operation
iron-meta copied to clipboard

Documentation's example is 100% wrong

Open mercmobily opened this issue 8 years ago • 2 comments

Documentation in GitHub states:

Pure imperative form would be like: document.createElement('iron-meta').byKey('info');

Documentation in the elements' catalog states:

Pure imperative form would be like: document.createElement('iron-meta').byKey('info').getAttribute('value');

Which is totally wrong. The catalog's documentation is the first one I looked at, and I was going insane trying to understand why byKey() would ever return an element.

mercmobily avatar Jul 02 '16 05:07 mercmobily

I assume the problem might stem from the sentence:

" I could define more attributes or use child nodes to define additional metadata."

Which I don't even understand...

mercmobily avatar Jul 02 '16 05:07 mercmobily

Yes, I am wondering what 'use child nodes' means here...some example of this would be nice in the docs/demos.

davidmaxwaterman avatar Mar 20 '17 15:03 davidmaxwaterman