K
K
Konstantin2019-02-13 20:25:06
Vue.js
Konstantin, 2019-02-13 20:25:06

I can not understand what is the problem with Vuex, writes Error in render: "TypeError"?

Good afternoon.
I enter the address in the browser command line localhost:8080/product/1
I can’t understand why when I print the object {{loadProduct}} , it prints without problems,
5c64522718fb6905928626.jpeg5c6452175b7fb197572284.jpeg
but when I specify some property of the object {{loadProduct.price}} , then in the console I get an error, but the property is displayed on the screen.
5c64524859b2f334798354.jpeg5c64524f8eedc920094176.jpeg
If anyone knows please tell me.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2019-02-13
@dragon11

That's what makes you post code with pictures? Kapets ...
On the case: write like this -

<span v-if="loadProduct">{{ loadProduct.price }}</span>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question