Skip to content

Instantly share code, notes, and snippets.

@gavilanch
Created June 25, 2019 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gavilanch/c778dc117c3ae22961c9e409d426ef2f to your computer and use it in GitHub Desktop.
Save gavilanch/c778dc117c3ae22961c9e409d426ef2f to your computer and use it in GitHub Desktop.
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