diff --git a/packages/elements/src/create-custom-element.ts b/packages/elements/src/create-custom-element.ts index 1e03bbec3f..4797d2136c 100644 --- a/packages/elements/src/create-custom-element.ts +++ b/packages/elements/src/create-custom-element.ts @@ -52,15 +52,13 @@ export type WithProperties
= { /** * Initialization configuration for the NgElementConstructor which contains the injector to be used * for retrieving the component's factory as well as the default context for the component. May - * provide a custom strategy factory to be used instead of the default. May provide a custom mapping - * of attribute names to component inputs. + * provide a custom strategy factory to be used instead of the default. * * @experimental */ export interface NgElementConfig { injector: Injector; strategyFactory?: NgElementStrategyFactory; - attributeToPropertyInputs?: {[key: string]: string}; } /** @@ -84,8 +82,7 @@ export function createCustomElement
(
const strategyFactory =
config.strategyFactory || new ComponentNgElementStrategyFactory(component, config.injector);
- const attributeToPropertyInputs =
- config.attributeToPropertyInputs || getDefaultAttributeToPropertyInputs(inputs);
+ const attributeToPropertyInputs = getDefaultAttributeToPropertyInputs(inputs);
class NgElementImpl extends NgElement {
static readonly observedAttributes = Object.keys(attributeToPropertyInputs);
diff --git a/packages/elements/test/create-custom-element_spec.ts b/packages/elements/test/create-custom-element_spec.ts
index b6cdb4ee98..43f643bbd8 100644
--- a/packages/elements/test/create-custom-element_spec.ts
+++ b/packages/elements/test/create-custom-element_spec.ts
@@ -93,39 +93,6 @@ if (typeof customElements !== 'undefined') {
expect(strategy.inputs.get('fooFoo')).toBe('foo-foo-value');
expect(strategy.inputs.get('barBar')).toBe('barBar-value');
});
-
- describe('with different attribute strategy', () => {
- let NgElementCtorWithChangedAttr: NgElementConstructor