I have html site. And i want to implement some vue js components on page. For example, in my header i want to have input field (one vue component).
<header><search-component></search-component></header>
And in my main html i have second vue component who display some search results from first vue component.
<main><list-component></list-component></main>
Hove i send data from search component to list component?
HTML is this:
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="app">
<header>
<search-component></search-component>
</header>
<main>
<list-component></list-component>
</main>
</div>
</body>
</html>
Of course this html is simplified version... The point of everything is to non have one main App.vue component and inside child component one and child component two.
Is that possible?