JS function equivalent to require?

Is there any JS equivalent of <require from=""></require> tag which i can call in element class file or any way to register global element dynamically (something like customElement decorator)?

1 Like

you can use @viewResources decorator, that looks like this:

import { viewResources } from 'aurelia-framework';

export class MyEl {

1 Like