JSFiddle - React, Tailwind, and code Playground
by acbabis
JavaScript
// Angular expects `angular.module('app')` to return a module synchronously.
// An error will be thrown because the module hasn't been initialized yet.
try {
angular.module('app').controller('fakeController', function() {
console.log('hi');
});
document.body.style.backgroundColor = 'green';
} catch (error) {
console.error(error);
document.body.style.backgroundColor = 'red';
}
angular.module('app', []);