Skip to content

Elaborate on what can be included in the createApp root props #1123

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

Merged
merged 1 commit into from
Jul 7, 2021

Conversation

skirtles-code
Copy link
Contributor

The props passed to createApp are raw props, so they can include attributes and event listeners as well as actual component props. This PR attempts to clarify that.

The original motivation was a Discord conversation about trying to migrate a $on call from Vue 2. In some cases it is possible to achieve the same effect by using a root prop like onClick. I intend to put in a separate PR to expand the migration guide page about $on to cover this use case.

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

Successfully merging this pull request may close these issues.

2 participants