Reputation: 4177
How should I refactor script:
swangular.confirm("Are you sure?", {
showCloseButton: true,
showCancelButton: true
}).then((result) => {
if (result.value) {
console.log("confirm");
} else {
console.log("cancel");
}
}
);
to be compatible with ES5?
Currently I receive: Unexpected token: operator (>)
inside 'then' codeblock.
Upvotes: 0
Views: 19