This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
FoodLoop-Web/src/app/shared/org-result.component.ts

25 lines
467 B
TypeScript

import { Component, Input, Output, EventEmitter } from '@angular/core';
interface OrgData {
id: number;
name: string;
street_name: string;
town: string;
postcode: string;
}
@Component({
selector: '[org-result]',
templateUrl: 'org-result.component.html',
})
export class OrgResultComponent {
@Input() public org: OrgData;
@Output() public onClick = new EventEmitter();
public orgClick(): void {
this.onClick.emit(
this.org
)
}
}