import { Component } from '@angular/core'; import { Http } from '@angular/http'; import { ServerDataSource } from '../../../../../src/ng2-smart-table'; @Component({ selector: 'advanced-example-server', template: ` `, }) export class AdvancedExampleServerComponent { settings = { columns: { id: { title: 'ID', }, albumId: { title: 'Album', }, title: { title: 'Title', }, url: { title: 'Url', }, }, }; source: ServerDataSource; constructor(http: Http) { this.source = new ServerDataSource(http, { endPoint: 'https://jsonplaceholder.typicode.com/photos' }); } }