title: how to display the api server data values in dropdown from database(django rest framework api) in angular smart table
body: <p><strong>This is my component.ts</strong></p>
  
  <pre><code>  ptype: {
              title: 'Product Type',
              type:'string',
              width:'50%',
              editor: {
                type:'list',
                config:{
                  list: [{ valuePrepareFunction: (cell, row) =&gt; {
                    return row.ptype
                  }
                   }]
                }
              }
  
            },
  </code></pre>
  
  <p><strong>This is my service.ts</strong></p>
  
  <pre><code> get_type (): Observable&lt;any[]&gt;
        {
            return this.http.get('http://127.0.0.1:8000/productype/')
                            .map(response =&gt; response.json())
                            .catch(error =&gt; Observable.throw(error.statusText));
        };
  </code></pre>
  
  <p>how to display the dropdown values in ng2 smart table in api calls.</p>