Answer the question
In order to leave comments, you need to log in
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({
//обратиться к классу отсюда
});
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question