projects/angular-material-fileupload/src/lib/mat-file-upload-queue/mat-file-upload-queue.service.ts
Properties |
|
Methods |
getInputValue |
getInputValue()
|
Returns :
any
|
initialize | ||||||
initialize(input: IInput)
|
||||||
Parameters :
Returns :
void
|
inputValue$ |
Default value : this.inputValueSubject.asObservable()
|
Private inputValueSubject |
Default value : new BehaviorSubject<IInput>(null)
|
import { Injectable } from "@angular/core";
import { BehaviorSubject } from "rxjs";
import { IInput } from "../mat-file-upload.type";
@Injectable()
export class MatFileUploadQueueService {
private inputValueSubject = new BehaviorSubject<IInput>(null);
inputValue$ = this.inputValueSubject.asObservable();
initialize(input: IInput) {
this.inputValueSubject.next(input);
}
getInputValue() {
return this.inputValueSubject.getValue();
}
}