-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
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
Data property with '_' prefixed not rendered properly #2098
Comments
|
Thanks Evan for your explanation
|
I'm using Vue 2.0. so what's the best naming strategy for a private variable (or a name computed by props) for example, i have a prop called However, the best name i came out with was |
Is this somewhere documented? We noticed that the properties where suddenly We were trying to use underscore names for privates (Typescript), so that we we're sure we aren't using privates from the html side. |
It is, in the API docs, |
thx. Found it. For reference:
|
Sorry if I necro this, I feel like there should be a better explanation in the error message thrown so you know why it's happening. I spent 2 hours today + 30 minutes duck debugging with a colleague to find out why it wasn't taking my data in the view. |
+1 for the necro... |
Then please open a feature request for a better error message. As you can see from the previous messages in this thread, closed issues are not a good place to continue conversations. |
What can be done, when the api rest that you consume returns you properties with '_'? |
Access it using |
Specifically |
Guys, what @LinusBorg said above. |
Hi,
I am learning Vue and it's been great so far.
When I use underscore '_' in data property name it doesn't render properly, is anyone had the same experience? Am I missing something?
Example in https://jsfiddle.net/7vw8aa36/
Thanks before!
The text was updated successfully, but these errors were encountered: