src/lib/reset.service.ts
Properties |
|
Methods |
|
| Public resetAll |
resetAll()
|
|
Defined in src/lib/reset.service.ts:19
|
|
Returns :
void
|
| Public resetDataSource |
resetDataSource()
|
|
Defined in src/lib/reset.service.ts:14
|
|
Returns :
void
|
| Public resetView |
resetView()
|
|
Defined in src/lib/reset.service.ts:10
|
|
Returns :
void
|
| Public dataSource$ |
Default value : new Subject<void>()
|
|
Defined in src/lib/reset.service.ts:8
|
| Public view$ |
Default value : new Subject<void>()
|
|
Defined in src/lib/reset.service.ts:7
|
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';
@Injectable({ providedIn: 'root' })
export class ResetService {
public view$ = new Subject<void>();
public dataSource$ = new Subject<void>();
public resetView() {
this.view$.next();
}
public resetDataSource() {
// TODO : iterate over the list of active DataSources
this.dataSource$.next();
}
public resetAll() {
this.resetDataSource();
this.resetView();
}
}