File

projects/angular-material-fileupload/src/lib/mat-file-upload-queue/mat-file-upload-queue.service.ts

Index

Properties
Methods

Methods

getInputValue
getInputValue()
Returns : any
initialize
initialize(input: IInput)
Parameters :
Name Type Optional
input IInput No
Returns : void

Properties

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();
  }
}

result-matching ""

    No results matching ""