File

src/app/stubs/activated-route.stub.ts

Index

Properties
Accessors

Properties

params
params:
Default value : this.subject.asObservable()
Private subject
subject:
Default value : new BehaviorSubject<any>({})

Accessors

testParams
settestParams(params: any)
Parameters :
Name Type Optional
params any no
Returns : void
import { BehaviorSubject } from 'rxjs/BehaviorSubject';

export class ActivatedRouteStub {
  private subject = new BehaviorSubject<any>({});
  params = this.subject.asObservable();

  set testParams(params: any) {
    this.subject.next(params);
  }
}

results matching ""

    No results matching ""