Skip to content

Using next(...) to set @inputs and @outputs on hero-loader components does not work for @output callbacks #27

@boltex

Description

@boltex

Works fine with @inputs, the .next method for an @input member works fine, but also providing callback functions for @output does nothing.

in lazy-loaded component:

  @Input()
  public myInput: any; 

  @Output()
  public myOutput: EventEmitter<void> = new EventEmitter();

in outer program itself :

public initMyComponent(p_componentRef: ICreatedComponentInterface): void {
    p_componentRef.next({
      myInput: this.someinfo,
      myOutput: function(): void {
        console.log('hello'); // does not work
      }
    });
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions