Files
barker/bookie/src/app/guest-book/guest-book-list-resolver.service.ts
tanshu d677cfb1ea Blacked and isorted the python files
Prettied and eslinted the typescript/html files
2020-10-11 10:56:29 +05:30

18 lines
490 B
TypeScript

import { Injectable } from '@angular/core';
import { Resolve } from '@angular/router';
import { Observable } from 'rxjs/internal/Observable';
import { GuestBookList } from './guest-book-list';
import { GuestBookService } from './guest-book.service';
@Injectable({
providedIn: 'root',
})
export class GuestBookListResolver implements Resolve<GuestBookList> {
constructor(private ser: GuestBookService) {}
resolve(): Observable<GuestBookList> {
return this.ser.list(null);
}
}