D
D
Dmitry2019-11-17 13:45:36
Angular
Dmitry, 2019-11-17 13:45:36

How to handle a callback to a third-party library function?

I connect the PickPoint service library dynamically to the Order component.
I define a global variable. I call a modal window with postomats when clicked.
declare var PickPoint: any;

viewPickPoint() {
    PickPoint.open(this.resultPickPoint)
  }

I specify as Callback of function.
resultPickPoint(event) { 
  }

But I can't save the result anywhere, only alert(event) and console.log work.
Tell me how to process the Callback of a third-party library in order to save the result of the postomat selection.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-11-17
@0xD34F

Lost context?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question