Inside my blade file -
<b-input-group class="mt-3 mb-3" size="sm">
<b-form-input id="filterinput" placeholder="Filter" type="text" onInput="showCurrentValue(event)"></b-form-input>
</b-input-group>
<invoices-component title="a" forminput='value'>
</invoices-component>
<script>
var value ='';
function showCurrentValue(event) {
value = event.target.value;
console.log(value)
};
</script>
Inside my vue component -
<template>
<div class="my-5">
<h2>Invoice inner</h2>
<h2>{{title}}</h2>
<h2>{{forminput}}</h2>
</div>
</template>
<script>
export default {
props: ["title", "forminput"],
};
</script>
In the blade template: I have a function that listens to the input field on key change (showCurrentvalue). How can I pass the input value as a prop?
In the vue component : The title value is passed (ie A) , but forminput value is static.
How do I pass the value typed in the input field dynamically every time it changes?
