Fully working table org search and better error

This commit is contained in:
piratefinn 2017-08-30 16:09:57 +01:00
parent f040a26794
commit 52de477cc2
7 changed files with 86 additions and 22 deletions

View file

@ -0,0 +1,23 @@
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { OrgResultComponent } from '../shared/org-result.component';
interface OrgData {
id: number;
name: string;
street_name: string;
town: string;
postcode: string;
}
@Component({
selector: 'org-table',
templateUrl: 'org-table.component.html',
})
export class OrgTableComponent {
@Input() public orgList: Array<OrgData>;
@Output() public onClick = new EventEmitter();
public orgClick(event: any): void {
this.onClick.emit( event );
}
}