I am trying to load the HTML template in the modal of the admin side in Magento 2 but unfortunately, the HTML template is not rendering in the modal but it’s working outside the modal. I am loading HTML template by using the code
<script type="text/x-magento-init">
{
"#course-component": {
"Magento_Ui/js/core/app": {
"components": {
"course-component": {
"component": "Webkul_LearningManagementSystem/js/course-component",
"template":"Webkul_LearningManagementSystem/course-component"
}
}
}
}
}
</script>
Please, anyone, face this issue that not rendering the HTML template in Modal. How can I fix it I want to use Ko js