I have a selection dropdown that I'm drawing data from that changes based on the selection. It will fire fine on first load, but wont change again until I reload or redirect.
getLogs(){
document.getElementById("placeSelect").addEventListener('change', (e:any)=>{
this.placeService.getPlace(e.target.value).subscribe((e:any)=>{
this.personService.person(e.data.place.person.id).subscribe((e:any) => {
this.logs = e.data.person.logs
})
})
})
}
I am calling this on the component's "ngOnInit", maybe that's the issue? Any ideas would be helpful.