Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
user: User;
ngOnInit() {
   this.todoForm = this.formBuilder.group({
     title: ['', Validators.required],
     description: ['', Validators.required],
     done: false
   });
   if (!this.createMode) { this.loadTodo(this.todo); }
   this.afAuth.user.subscribe(user => {
if (user){
this.user = user;
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment