-
-
Save gavilanch/53318d7cf3269387bce71164da3ff5a5 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
if (this.createMode) { | |
let todo: Todo = this.todoForm.value; | |
todo.lastModifiedDate = new Date(); | |
todo.createdDate = new Date(); | |
todo.userId = this.user.uid; // <---- | |
this.todoService.saveTodo(todo) | |
then(response => this.handleSuccessfulSaveTodo(response, todo)) | |
catch(err => console.error(err)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment