Alpine.js Playground
Examples Newsletter

x-for with objects

Copied!
Table of contents

See the full post on @todo

x-data state:

Only need the keys/ids - use Object.keys

Need keys/ids and values - use Object.entries

Need keys/ids and values - use Object.keys + lookup

Need only values - use Object.values

Need values - use Object.keys + lookup


        

💥 Subscribe for Early Access to the Alpine.js Handbook 📖 💥