L
L
Leopandro2018-02-27 02:41:46
typescript
Leopandro, 2018-02-27 02:41:46

How to call from a js function in typescript code to the typescript class that called this code?

Let's say there is such a jquery function that builds a calendar:

export class UserScheduleComponent implements OnInit {

  constructor() { }

  ngOnInit() {
  	let containerEl = $('#calendar');

    containerEl.fullCalendar({
        //обратиться к классу отсюда
    });
  }

}

Is it possible to refer to class functions, variables, transfer something there, etc., in some non-super-shackle way?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question