title: Not able to access the key: data from the Object which is retrived from Data base
body: <p>In .Ts File</p>
  <p>this.pservice.getProduct(this.activateroute.snapshot.params['id']).subscribe((result:Product)=&gt;{</p>
  <pre><code>  // console.log(&quot;The Result in subscribe method&quot;,result)
    // console.log(&quot;Result in subscribe method using Object(result)&quot;, Object(result));
    // console.log(&quot;ID  meth-1&quot;, Object(result)['pid']);
    // console.log(&quot;Id meth-2&quot;, result[&quot;pid&quot;]);
    // console.log(&quot;Id meth-3&quot;, result.pid);
    this.regForm= new FormGroup({
        pid:new FormControl (result),
        pname: new FormControl (result['pname'] ),
        pcost: new FormControl(result['pcost']),
        pdim: new FormControl (result['pdim']),
        
  });
  </code></pre>
  <p>while accessing result.pid it showing undefined.
  But in result varible i have a data
  {&quot;pid&quot;:10,&quot;pname&quot;:&quot;book&quot;,&quot;pcost&quot;:120.0,&quot;pdim&quot;:&quot;123widlen&quot;}</p>