Skip to content

Instantly share code, notes, and snippets.

@Dornhoth
Last active June 7, 2020 13:25
Show Gist options
  • Save Dornhoth/b204d78a2a92fc055678e7b8b7f0b592 to your computer and use it in GitHub Desktop.
Save Dornhoth/b204d78a2a92fc055678e7b8b7f0b592 to your computer and use it in GitHub Desktop.
import { Component } from '@angular/core';
import { STORAGE, PersistenceService } from '../services/persistence.service';
@Component({
selector: 'app-storage',
templateUrl: './storage.component.html',
providers: [
PerstistenceService,
{ provide: STORAGE, useValue: sessionStorage }
]
})
export class StorageComponent {
constructor(
private persistenceService: PerstistenceService,
) { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment