Uploading content
This commit is contained in:
14
resources/views/livewire/test/child-component.blade.php
Normal file
14
resources/views/livewire/test/child-component.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<div>
|
||||
You id is {{ $id }}
|
||||
<button wire:click ="doSome">Hit child</button>
|
||||
</div>
|
||||
|
||||
@script
|
||||
<script>
|
||||
// After the first "Hit parent" this will gives youn the error of no component found
|
||||
// due the lack of hability of livewire to track correctly the previous component events
|
||||
@this.on('did', () => {
|
||||
alert('did it')
|
||||
})
|
||||
</script>
|
||||
@endscript
|
||||
Reference in New Issue
Block a user