I'm trying to pass a callback as a function parameter.
For example:
public abc1(doc:any){
console.log('abc1');
}
public abc2(model:any){
console.log('abcd2');
}
xyz.load(id.replace('/', ''), abc1, abc2);
Here abc1
and abc2
my callback functions and I'm trying to pass these functions in xyz.load
as 2 and 3 arg.
All are in the same component.