Create a livewire component via javascript
I am working on a solution where I need multiple of the same livewire components on demand. Such as in a repeater.
Does anyone know a way to create a livewire component via javascript?
I tried to add it via .innerHTML of "<livewire:counter />". This however caused this directive to be replaced with the actual livewire component within javascript. To circumvent this I also obfuscated it by appending two strings ("<livew" + "ire:counter />"). This didnt get picked up by livewire however.
Does anyone know a way to create a livewire component via javascript?
I tried to add it via .innerHTML of "<livewire:counter />". This however caused this directive to be replaced with the actual livewire component within javascript. To circumvent this I also obfuscated it by appending two strings ("<livew" + "ire:counter />"). This didnt get picked up by livewire however.