charts
This commit is contained in:
@@ -35,4 +35,11 @@ Alpine.directive('hx-header', (el, { value, expression }, { evaluateLater, effec
|
||||
})
|
||||
})
|
||||
})
|
||||
Alpine.directive(
|
||||
"destroy",
|
||||
(el, { expression }, { evaluateLater, cleanup }) => {
|
||||
const onDestroy = evaluateLater(expression);
|
||||
cleanup(onDestroy);
|
||||
}
|
||||
);
|
||||
})
|
||||
Reference in New Issue
Block a user