Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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