Initial commit for the Angular part. We are nowhere yet.

This commit is contained in:
Amritanshu
2019-06-14 00:32:34 +05:30
parent 1a1fa7881d
commit d59c60e81d
123 changed files with 3748 additions and 374 deletions

View File

@ -0,0 +1,18 @@
import {Injectable} from '@angular/core';
import {ActivatedRouteSnapshot, Resolve, RouterStateSnapshot} from '@angular/router';
import {GuestBook} from "./guest-book";
import {Observable} from 'rxjs/internal/Observable';
import {GuestBookService} from './guest-book.service';
@Injectable({
providedIn: 'root'
})
export class GuestBookListResolver implements Resolve<GuestBook[]> {
constructor(private ser: GuestBookService) {
}
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<GuestBook[]> {
return this.ser.list(null);
}
}