Created
December 16, 2019 12:26
-
-
Save anoobbava/a309a8f0ff099bd98ff5b797b20ef4bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
createTodo () { | |
const todoData = { 'title': this.task } | |
this.saveTodoAction(todoData) | |
.then(() => { | |
this.task = '' | |
SweetAlert.successfulLogin() | |
}) | |
.catch(() => { | |
SweetAlert.failureLogin() | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment