fix library not refreching when add new entry
This commit is contained in:
1 parent
f68d5cbb89
commit
561f27b065
4 files changed
+37
-9
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Resolve, ActivatedRouteSnapshot } from '@angular/router';
|
||||
import { Observable } from 'rxjs';
|
||||
import { LibraryService } from '../services/library.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class LibraryEntriesResolver implements Resolve<any> {
|
||||
constructor(private libraryService: LibraryService) {}
|
||||
|
||||
resolve(route: ActivatedRouteSnapshot): Observable<any> {
|
||||
return this.libraryService.getAllEntries();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user