18 lines
477 B
TypeScript
18 lines
477 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { Resolve } from '@angular/router';
|
|
import { Observable } from 'rxjs/internal/Observable';
|
|
|
|
import { LockInfo } from './lock-info';
|
|
import { SettingsService } from './settings.service';
|
|
|
|
@Injectable({
|
|
providedIn: 'root',
|
|
})
|
|
export class LockInformationResolver implements Resolve<LockInfo> {
|
|
constructor(private ser: SettingsService) {}
|
|
|
|
resolve(): Observable<LockInfo> {
|
|
return this.ser.getLockInformation();
|
|
}
|
|
}
|