Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

does it can use props like this <my-component :xxx="xxx"></my-component> #93

Open
x13872140520 opened this issue Dec 17, 2019 · 1 comment

Comments

@x13872140520
Copy link

in html
image
image

in vue components

image
image

but! it doesnt work , the result is nothing

@lanyizi
Copy link

lanyizi commented Dec 17, 2019

@x13872140520 That doesn't look like to be a problem related to http-vue-loader.
In template / html, you should write your props in snake-case.

From Vue Documentation:

HTML attribute names are case-insensitive, so browsers will interpret any uppercase characters as lowercase. That means when you’re using in-DOM templates, camelCased prop names need to use their kebab-cased (hyphen-delimited) equivalents.

Something like this:

<my-component :current-post-url="currentPostUrl" />

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants