Gajendra Jangid
How we can pass data from child component to parent component?
By Gajendra Jangid in Angular on Feb 11 2019
  • Kiran Mohanty
    Sep, 2020 2

    We can pass data from child component to parent using “Output” event emitter.
    Ex:-

    child.component.ts
    onChildEvent = new EventEmitter();

    yourFunction(input: any): void {
    this.onChildEvent.emit(input);
    }

    parent.component.html


    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS