Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

PANDISHARATHI's avatar

How to Pass data from Javascript to Alpine JS

// Blade File

Click me Alpine.data('TestResult', () => { const myArray = ['foo', 'bar', 'baz']; return { myArray: myArray, }; });

// Component File

0 likes
2 replies

Please or to participate in this conversation.