src/app/stubs/activated-route.stub.ts
Properties |
Accessors |
params |
params:
|
Default value : this.subject.asObservable()
|
Defined in src/app/stubs/activated-route.stub.ts:5
|
Private subject |
subject:
|
Default value : new BehaviorSubject<any>({})
|
Defined in src/app/stubs/activated-route.stub.ts:4
|
testParams | ||||||
settestParams(params: any)
|
||||||
Defined in src/app/stubs/activated-route.stub.ts:7
|
||||||
Parameters :
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);
}
}