I want to set a default value of an input.
It is shown for a second and then it disappears.
Now I have the solution
blade:
<div > <input wire:model.lazy="vp" class="border-2 border-gray-500 pl-4 py-1" type="number" id="pippo" name="nm_pippo"> <p1>{{$vp}}</p1> </div>
class:
namespace App\Http\Livewire;
use Livewire\Component;
class Lprova extends Component
{
public $vp;public function mount(){ $this->vp=123; } public function render() { return view('livewire.lprova'); }
}
thanks