• Creates a component class amendment (and decorator).

    Decorated class becomes component:

    @Component({ name: 'my-element' })
    class MyComponent {
    // ...
    }

    Such component can be registered with define method or used as a feature, e.g. passed to bootstrapComponents function, or added to needs property of another feature.

    This is an alternative to direct call to define method.

    Returns

    Component class amendment and decorator.

    Type Parameters

    • TClass extends ComponentClass<any, TClass> = Class<any>

      Amended component class type.

    • TAmended extends AeComponent<TClass, TAmended> = AeComponent<TClass>

      Amended component entity type.

    Parameters

    • Rest ...amendments: (QualifiedName | ComponentDef<InstanceType<TClass>> | Amendment<TAmended>)[]

      Component definitions, qualified name od component's element, or amendments to apply.

    Returns ComponentAmendment<TClass, TAmended>

Generated using TypeDoc