JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://unpkg.com/zone.js@0.8.4?main=browser"></script>
TypeScript
function main(){
console.log('Start ' );
setTimeout(function(){
throw new Error('Oops End- Error');},1000);
console.log('In Progress ');
}
Zone.current.fork({
onHandleError: (parentZoneDelegate, currentZone, targetZone, error) =>{
console.log('error handler ->',error)
}
}).run(main);