Skip to content

Instantly share code, notes, and snippets.

@gavilanch
Created June 25, 2019 21:47
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/a86aad342b8800599569b40aff309ced to your computer and use it in GitHub Desktop.
Save gavilanch/a86aad342b8800599569b40aff309ced to your computer and use it in GitHub Desktop.
export class TodoListComponent implements OnInit {
 user: User;
 constructor(private modalService: NgbModal,
   private todoService: TodoService,
   private afAuth: AngularFireAuth) { }
 ngOnInit() {
   this.afAuth.user.subscribe(user => {
     if (user) {
       this.loadTodos(user.uid);
   })
 loadTodos(userId: string) {
   this.todoService.getTodos(userId).subscribe(response => {...
@juannunez09
Copy link

Una cosa, no dejas claro si hay que crear un componente de Todo y luego los todo-form.component y lo demás no se sabe muy bien como va, no se aprecia el scafolding para poder llevar un orden de lo que se puede ir haciendo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment