Open binrohan opened 2 months ago
This is should add the class as component. It is not working because of ts.
import {register} from '@nc/component-loader'; class testScript { constructor() { this.init(); } public init(): void { window.alert('Hello World'); } } register({testScript});
What error do you receive. It works fine for this demo: https://playcode.io/1942178
Expected Behaviour
This is should add the class as component. It is not working because of ts.