informatique:javascript:alpinejs
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| informatique:javascript:alpinejs [26/04/2024 09:19] – créée cyrille | informatique:javascript:alpinejs [18/10/2025 10:46] (Version actuelle) – cyrille | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | https:// | + | ====== Alpine.js ====== |
| - | AlpineJs permet de manipuler le DOM sans se lancer dans une SPA, très léger (<10ko gzippé et minifié) et n' | + | * https:// |
| + | * https:// | ||
| + | |||
| + | AlpineJs permet de créer/ | ||
| Présentation des principes d' | Présentation des principes d' | ||
| Ligne 13: | Ligne 16: | ||
| * [[https:// | * [[https:// | ||
| * Quelques composants https:// | * Quelques composants https:// | ||
| + | * https:// | ||
| + | * [[https:// | ||
| + | * le tag '' | ||
| + | |||
| + | ===== Comparaison avec Juris JS ===== | ||
| + | |||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | Alpine.js Limitations: | ||
| + | |||
| + | * Template-bound logic - Business logic mixed with HTML attributes | ||
| + | * Debugging challenges - Hard to debug x-data and x-show in DevTools | ||
| + | * No true islands - Global Alpine state affects entire page | ||
| + | * Limited composability - Difficult to share logic between components | ||
| + | * Opaque reactivity - Can't easily inspect state changes | ||
| + | |||
| + | Juris.js Advantages: | ||
| + | |||
| + | * Pure JavaScript - All logic in debuggable JS functions | ||
| + | * True islands - Each enhancement is completely isolated | ||
| + | * Transparent state - Clear state management with full debugging support | ||
| + | * Service injection - Clean dependency injection pattern | ||
| + | * Selector targeting - Precise DOM targeting without attribute pollution | ||
| + | |||
informatique/javascript/alpinejs.1714115981.txt.gz · Dernière modification : de cyrille
