Michal_Szulc
Michal_Szulc

Reputation: 4177

Get greater-than sign compatibility with ES5

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

Answers (0)

Related Questions