File

src/lib/discussion-events.service.ts

Index

Properties
Methods

Constructor

constructor()

Methods

emitTelemetry
emitTelemetry(event)
Parameters :
Name Optional
event No
Returns : void

Properties

Public actionEvent
Default value : new EventEmitter<any>()
Public telemetryEvent
Default value : new Subject<any>()
import { Injectable, EventEmitter } from '@angular/core';
import { Subject } from 'rxjs';
/* tslint:disable */
import * as _ from 'lodash'
/* tslint:enable */
@Injectable({
  providedIn: 'root'
})
export class DiscussionEventsService {

  public telemetryEvent = new Subject<any>();
  public actionEvent = new EventEmitter<any>();

  constructor() { }

  emitTelemetry(event) {
    console.log('Lib Event', event);
    if (!_.isEmpty(event)) {
      this.telemetryEvent.next(event);
    }
  }
}

results matching ""

    No results matching ""