Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Object.keys(EXAMPLE_COMPONENTS).forEach(key => {
const element = createCustomElement(EXAMPLE_COMPONENTS[key].component, {
injector,
});
customElements.define(key, element);
});
// icon
ngDoBootstrap() {
const elem = createCustomElement(DotKeyvalueComponent, {injector: this.injector});
customElements.define('dot-keyvalue', elem);
// const elem2 = createCustomElement(DotTestComponent, {injector: this.injector});
// customElements.define('dot-test', elem2);
}
}
constructor(private injector: Injector) {
console.log('TodoModule cstr');
const customElement = createCustomElement(MyTodo, { injector });
customElements.define('my-todo', customElement);
}
ngDoBootstrap() {
map((_: CustomElementData) => createCustomElement(_.component, { injector: _.injector })),
tap((customElement: any) => customElements!.define(selector, customElement)),
constructor(private injector: Injector) {
customElements.define('hello-world-el', createCustomElement(HelloWorldComponent, {injector}));
customElements.define(
'hello-world-shadow-el', createCustomElement(HelloWorldShadowComponent, {injector}));
customElements.define('test-card', createCustomElement(TestCardComponent, {injector}));
}
ngDoBootstrap() {}
ngDoBootstrap() {
let elm: any;
elm = createCustomElement(FlipSwitchComponent, {injector: this.injector});
customElements.define('vcl-flip-switch', elm);
elm = createCustomElement(BusyIndicatorComponent, {injector: this.injector});
customElements.define('vcl-busy-indicator', elm);
elm = createCustomElement(ButtonComponent, {injector: this.injector});
customElements.define('vcl-button', elm, {
extends: 'button'
});
}
}
ngDoBootstrap() {
const el = createCustomElement(UserPollComponent, { injector: this.injector });
customElements.define('user-poll', el);
}
}
ngDoBootstrap() {
if (environment.production) {
const el = createCustomElement(EditorWrapperComponent, { injector: this.injector });
customElements.define('js-bubble', el);
}
}
constructor(private injector: Injector) {
const strategyFactory = new ElementZoneStrategyFactory(WebComponentComponent, this.injector);
const element = createCustomElement(WebComponentComponent, { injector: this.injector, strategyFactory });
customElements.define('openvidu-webcomponent', element);
}
constructor(private injector: Injector) {
const checkerElement = createCustomElement(ConvaiChecker, { injector });
customElements.define('convai-checker', checkerElement);
}