angular-extensions / elements

Lazy load Angular Elements (or any other web components / custom elements ) with ease!
https://angular-extensions.github.io/elements/
MIT License
317 stars 40 forks source link

Error Hook with details #81

Closed p-wunderlich closed 3 years ago

p-wunderlich commented 3 years ago

Hi,

is there a possibility to get more details about the error which occurred while loading the script? Especially the HTTP Status Code + message would be interesting. (In our case we want to decide between missing js and auth problems)

In the code it looks like that there is just a hook if we could successfully load the script file.

Cheers, Patrick

arturovt commented 3 years ago

Closing the issue since it's been implement in https://github.com/angular-extensions/elements/pull/96. You can now swallow script loading errors through ErrorHandler.handleError.