Hi,
I am using popover to display different option for user to select , after selecting or inputting different values user clicks on search button on popover. see the screen dump below :
on search button i have event :
close() {
let data = {
dStart : this.dStart,
dEnd : this.dEnd,
searchText: this.searchText,
supplier : this.supplier,
barcode: this.barcode
};
this.viewCtrl.dismiss(data);
}
In the parent component I am presenting this popover using the code below :
presentSearchPopover(ev){
let popover = this.popoverCtrl.create(PopoverSearchPage,{});
popover.present({
ev: ev
});
popover.onDidDismiss(data => {
console.log(data);
if(data!=null){
this.dStart = data.dStart;
this.dEnd = data.dEnd;
this.supplier = data.supplier;
this.barcode = data.barcode;
this.searchText = data.searchText;
this.bloodHoundIt();
}
})
}
The bloodHoundIt() function code is below:
bloodHoundIt(){
this.bloodHoundApi.unleashBooldHound(this.authorizationKey,
this.datePipe.transform( this.dStart,'yyyyMMdd'),
this.datePipe.transform( this.dEnd,'yyyyMMdd'),
this.searchText,
this.supplier,
this.barcode).subscribe((response)=>{
console.log(response);
});
}
now when I run the code I get error msg:
TypeError: this.bloodHoundApi.unleashBooldHound is not a function
Any idea what I am doing wrong here .
Thanks