how to bind the smart table cell with server data in angularjs -


i have ng2-smart-table in angular project. want bind data server smart-table. not work.

here code component.ts

import { component } '@angular/core';  import { ng2smarttablemodule, serverdatasource } 'ng2-smart-table';  import { http } '@angular/http';    @component({    selector: 'new',    template: '<ng2-smart-table [settings]="settings" [source]="source"></ng2-smart-table>',  })  export class newcomponent {    settings={      columns: {          id: {            title: 'id',          },          albumid: {            title: 'number',          },          title: {            title: 'direction',          },          url: {            title: 'cost',          },        },  };    source: serverdatasource;      constructor(http: http) {      this.source = new serverdatasource(http, { endpoint: 'http://ec2-35-164-0-168.us-west-2.compute.amazonaws.com/panasonic_dubai/_search?q=*' });    }    }


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -