mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-25 16:29:49 -04:00
27 lines
545 B
TypeScript
27 lines
545 B
TypeScript
import { Component, EventEmitter, Output, Input} from "@angular/core";
|
|
@Component({
|
|
selector: "passage",
|
|
templateUrl: "passage.html"
|
|
})
|
|
export class Passage {
|
|
@Output()
|
|
onStrongs = new EventEmitter<string>();
|
|
@Output()
|
|
onClose = new EventEmitter<BiblePassageResult>();
|
|
|
|
@Input()
|
|
item: BiblePassageResult;
|
|
|
|
@Input()
|
|
dict: string;
|
|
|
|
constructor() {
|
|
}
|
|
|
|
close() {
|
|
this.onClose.emit(this.item);
|
|
}
|
|
openStrongs(strongs: string) {
|
|
this.onStrongs.emit(this.dict+strongs);
|
|
}
|
|
} |