A
A
Alexander Pankov2020-07-10 16:21:50
JavaScript
Alexander Pankov, 2020-07-10 16:21:50

How to correctly specify the type of props in a Vue component?

Hello.

there is a component, everything is assembled by webpack
the component has input parameters, they are arrays, objects, strings...

I can't understand why VUE swears when I pass everything right

So

HTML
5f086ada4b61d120501907.png

Call in the code
5f086aec1ca18636107842.png

I see in the console
5f086afce1ac7638997828.png

Still right, isn't it?
Moreover, this component is called for me in a completely different place in the system, and I also pass everything in the same way and it works ... but here there is
, roughly speaking, at
site/purchase/ - there is a component and it is called perfectly
site/admin/purchase/ - the same component costs absolutely and is not called ..

what's the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
londhor, 2020-07-10
@londhor

Most likely, template is not called, or the component is not connected at all on the page
Where you pass numbers, add a modifier .numberto get v-bind:initial-country.number

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question