Blacked and isorted the python files
Prettied and eslinted the typescript/html files
This commit is contained in:
@ -1,18 +1,17 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot } from '@angular/router';
|
||||
import { Resolve } from '@angular/router';
|
||||
import { Observable } from 'rxjs/internal/Observable';
|
||||
import { GuestBookList } from './guest-book';
|
||||
|
||||
import { GuestBookList } from './guest-book-list';
|
||||
import { GuestBookService } from './guest-book.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class GuestBookListResolver implements Resolve<GuestBookList> {
|
||||
constructor(private ser: GuestBookService) {}
|
||||
|
||||
constructor(private ser: GuestBookService) {
|
||||
}
|
||||
|
||||
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<GuestBookList> {
|
||||
resolve(): Observable<GuestBookList> {
|
||||
return this.ser.list(null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user