Alpine

There are few options on how to include/import Alpine into your project:

Install from NPM

Install the Alpine Js library from command prompt from the root directory of the project:

npm install alpinejs --save

How to import Alpine Js package?

import Alpine from 'alpinejs';
window.Alpine = Alpine;

To start alpine add the below code in the src/assets/js/main.js"

window.Alpine.start();
// below is an example of init alpine
function animatedCounter(target, time = 200, start = 0) {
    return {
        ...
    }
}
document.addEventListener('alpine:init', () => {
    Alpine.data('animatedCounter', animatedCounter);
});
Receive the latest updates directly in your inbox!

Be the first to know about new updates and exclusive discounts. No spam, just great offers!

How about

A Custom Project?

With over 7 years of experienced team, we specialize in delivering custom projects for startups, blue-chip companies, and government agencies. We have successfully completed over 250+ projects, providing tailored solutions that meet the unique needs of each client.

Hire Us
Domiex Admin & Dashboards
230+

Total Pages

5+

Layouts

11+

Application

We provide quick support withing one business day to all of our customers.

© Domiex Created & Crafted by SRBThemes.