This repository has been archived by the owner on Oct 26, 2024. It is now read-only.
4.2.0
Added
- The controller now dispatches two events
success
anderror
so you can trigger actions accordingly.
Example:
// On `document` or on the element directly.
document.addEventListener('content-loader:success', () => {
console.log('Content loaded successfully.')
})
document.addEventListener('content-loader:error', (e) => {
console.error('Something went wrong.', e.detail.error)
})