blob: 70449379f69cca494ab4120dc0b22ecdf19ee134 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import {ActivatedRouteSnapshot, Resolve} from "@angular/router";
import {Injectable} from "@angular/core";
import {ConfigurationService} from "./configuration.service";
import {Observable} from "rxjs/Observable";
@Injectable()
export class FlagsResolve implements Resolve<Observable< { [key: string]: boolean }>> {
constructor(private _configurationService: ConfigurationService) {}
resolve(route: ActivatedRouteSnapshot) {
return this._configurationService.getFlags();
}
}
|