import { Component, EventEmitter, Output, Input} from "@angular/core"; @Component({ selector: "passage", templateUrl: "passage.html" }) export class Passage { @Output() onStrongs = new EventEmitter(); @Output() onClose = new EventEmitter(); @Input() item: BiblePassageResult; @Input() dict: string; constructor() { } close() { this.onClose.emit(this.item); } openStrongs(strongs: string) { this.onStrongs.emit(this.dict+strongs); } }