-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Description
What problem does this feature solve?
When developing a component in isolation with cli-service-global
and vue serve
there is often a need to pass props to the component. This is particularly true when building a component that needs to expose a "public API" via props. Currently, to use vue serve
in development, one must hard code prop values as "defaults" to pass the desired data into the component.
What does the proposed API look like?
The props could either be self-contained in a JSON file or passed via the CLI.
vue serve MyComponent.vue sampleProps.json
vue serve MyComponent.vue --propA="Bob" --propB=9