Added prettier and also prettied all the typescript files using prettier ESLint is using the AirBnB rules which are the most strict to lint the files.
16 lines
528 B
TypeScript
16 lines
528 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot } from '@angular/router';
|
|
import { Observable } from 'rxjs/internal/Observable';
|
|
import { SettingsService } from './settings.service';
|
|
|
|
@Injectable({
|
|
providedIn: 'root',
|
|
})
|
|
export class LockInformationResolver implements Resolve<any> {
|
|
constructor(private ser: SettingsService) {}
|
|
|
|
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<any> {
|
|
return this.ser.getLockInformation();
|
|
}
|
|
}
|