Guest User

Untitled

a guest
Nov 24th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. let currentUid=this.afAuth.auth.currentUser.uid.valueOf();
  2. this.items = afDB.list('ToDoList/'+currentUid).valueChanges();
  3. this.items.subscribe((data)=>{
  4. console.log(""+ data);
  5. this.tasks = data;
  6.  
  7. checked($event){
  8. if(event.target.checked==true)
  9. {
  10.  
  11. }
  12. else
  13. {
  14.  
  15. }
  16. }
  17.  
  18. <ion-item class="text" *ngFor="let task of tasks">
  19. <input type="checkbox" (change)="checked($event,task)"/>
Add Comment
Please, Sign In to add comment