title: Advice/Opinion: Insert Data to a specific user using Firebase and Angular
body: <p>I would really like some advice and opinion I am now currently inserting data from firebase using angular. I can now insert data but the problem is It won't insert inside the child I' am calling. </p>
  
  <p>This is my <strong>task-form.component.html</strong>:</p>
  
  <pre><code>&lt;form #t="ngForm" (ngSubmit)="add(t.value)"&gt;
  &lt;div class="form-group"&gt;
  &lt;label for="taskTechiciansName"&gt;Technicians Name&lt;/label&gt;
  
  &lt;select ngModel name="taskTechniciansName" id="taskTechniciansName" 
  class="form-control"&gt;
     &lt;option value=""&gt;&lt;/option&gt;
      &lt;option *ngFor="let a of techNames$ | async" [value] ="a.$key"&gt;
      {{ a.name }}
     &lt;/option&gt;
  &lt;/select&gt;
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
     &lt;label for="taskAdd"&gt;Address&lt;/label&gt;
     &lt;input ngModel name="taskAdd" id="taskAdd" type="text" class="form-control"&gt;
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
     &lt;label for="taskDate"&gt;Date&lt;/label&gt;
     &lt;input ngModel name="taskDate" id="taskDate" type="date" class="form-control"&gt;
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
     &lt;label for="taskClass"&gt;Class&lt;/label&gt;
     &lt;input ngModel name="taskClass" id="taskClass" type="text" class="form-control"&gt;
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
     &lt;label for="taskDesc"&gt;Description&lt;/label&gt;
     &lt;input ngModel name="taskDesc" id="taskDesc" type="text" class="form-control"&gt;
  &lt;/div&gt;
  
  &lt;button class="btn btn-primary"&gt;Add Task&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>here is my code <strong>tasks.service.ts</strong>:</p>
  
  <pre><code>import { Injectable } from '@angular/core';
  import { AngularFireDatabase } from 'angularfire2/database';
  import { AngularFireAuthModule } from 'angularfire2/auth';
  import { AngularFireDatabaseModule } from 'angularfire2/database';
  
  @Injectable()
  export class TaskService {
  
  uid: string;
  
  constructor(private db: AngularFireDatabase, 
  private af: AngularFireDatabase, 
  private am: AngularFireAuthModule
  ) {
  }
  
  create(tasks){
  return this.db.database.ref('/users/').push({ tasks }).key;
  }
  }
  </code></pre>
  
  <p>and this is my database structure:</p>
  
  <p><img src="https://i.stack.imgur.com/Dn8FW.png" alt="firebase database"></p>
  
  <p>and this is how the data is being submitted:</p>
  
  <p><a href="https://i.stack.imgur.com/N1H61.png" rel="nofollow noreferrer">task data</a></p>
  
  <p>I really want to <strong>insert the info data into a specific user under tasks child</strong>. Your help is greatly appreciated.</p>