alpinejs-course icon indicating copy to clipboard operation
alpinejs-course copied to clipboard

alpine.data multiple different object

Open ericxin1982 opened this issue 2 years ago • 0 comments

HI @thecodeholic

I saw your course, very good, and at the same time I have a question not sure whether you encountered before. That is when I need to use alpine.data for more than one object, like dropdown here, you declared one object, if I need to declare dropdown1, dropdown2, drawer, bookstore these objects, how to do?

I saw all cases they are just register one object, not sure how to do.

Thanks Eric Xin

ericxin1982 avatar Jun 19 '23 02:06 ericxin1982