Skip to content

Commit

Permalink
Merge pull request #55 from skounis/feat/issue-54-cache
Browse files Browse the repository at this point in the history
feat(cache) Store the request and server them from the local storage.
  • Loading branch information
skounis authored Jan 25, 2022
2 parents 5c4bbf2 + c889ecb commit 68ef7bc
Show file tree
Hide file tree
Showing 6 changed files with 4,497 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { DCCDescriptionComponent } from '../components/dccdescription/dccdescrip
import { DCCQRComponent } from '../components/dccqr/dccqr.component';
import { environment } from '../environments/environment';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { MatButtonModule } from '@angular/material/button';
import { MatCardModule } from '@angular/material/card';
import { MatFormFieldModule } from '@angular/material/form-field';
Expand All @@ -26,6 +26,7 @@ import { MatExpansionModule } from '@angular/material/expansion';
import { MatSnackBarModule } from '@angular/material/snack-bar';
import { MatBadgeModule } from '@angular/material/badge';
import { MatTooltipModule } from '@angular/material/tooltip';
import { MockDataInterceptor } from '../interceptors/mock-data.interceptor'

@NgModule({
declarations: [
Expand Down Expand Up @@ -57,6 +58,7 @@ import { MatTooltipModule } from '@angular/material/tooltip';
],
providers: [
{ provide: APP_INITIALIZER, useFactory: loadInitialData, deps: [DataLoaderService], multi: true },
{ provide: HTTP_INTERCEPTORS, useClass: MockDataInterceptor, multi: true},
DataLoaderService,
AppStore,
...environment.providers,
Expand Down
Loading

0 comments on commit 68ef7bc

Please sign in to comment.