The input parameters are undefined?

There is a parent component in which I call the child component and pass parameters.
5b51bf8d3ee81072068257.png
In the component 'news recommendation' deduce in the console the input parameters, outputs undefined.
5b51c078f078b964283152.png
In Vue DevTools input parameters are.
5b51c0bfb129d446663035.png
Can't understand what the problem is
June 3rd 19 at 19:29
1 answer
June 3rd 19 at 19:31
Solution
Your mistake is that the child component is being rendered and invoked his hook mounted before the parent component will finish its request axios. Therefore, the hook undefined and in console appear.

As an option, add-v if on the child component with the corresponding conditions

Find more questions by tags Vue.js