You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs note that you can declare private props on webc components using the special @ syntax, but they don't clarify how to access this data in JavaScript:
Make any attribute into a prop by prefixing it with @. Props are “private” attributes that don’t end up in the output HTML (they are private to WebC). They will be filtered from the output HTML but are available to the component’s data.
This is the example from the docs:
<my-component@propName="Hello"></my-component>
Where is propName accessible in the web component?
Do we still need to use @ wherever we access it in JavaScript or do we drop that?
The text was updated successfully, but these errors were encountered:
The docs note that you can declare private props on webc components using the special
@
syntax, but they don't clarify how to access this data in JavaScript:This is the example from the docs:
propName
accessible in the web component?@
wherever we access it in JavaScript or do we drop that?The text was updated successfully, but these errors were encountered: