Created
November 2, 2022 18:56
-
-
Save ezzabuzaid/3c1ff30798f7609750936699dcf6cd84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createCustomElement } from '@angular/elements'; | |
import { createApplication } from '@angular/platform-browser'; | |
(async () => { | |
const app = await createApplication({ | |
providers: [], | |
}); | |
const WebComponent = createCustomElement(YourComponent, { | |
injector: app.injector, | |
}); | |
customElements.define('universal-datagrid', WebComponent); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment