src/lib/discussion-events.service.ts
Properties |
|
Methods |
constructor()
|
Defined in src/lib/discussion-events.service.ts:12
|
emitTelemetry | ||||
emitTelemetry(event)
|
||||
Defined in src/lib/discussion-events.service.ts:16
|
||||
Parameters :
Returns :
void
|
Public actionEvent |
Default value : new EventEmitter<any>()
|
Defined in src/lib/discussion-events.service.ts:12
|
Public telemetryEvent |
Default value : new Subject<any>()
|
Defined in src/lib/discussion-events.service.ts:11
|
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);
}
}
}