showing results for - "jwt token local storage in angular"
Jill
29 Feb 2020
1import { Injectable } from '@angular/core';
2 
3@Injectable()
4export class LocalStorageService {
5 
6    set(key: string, value: string) {
7        localStorage.setItem(key, value);
8    }
9 
10    get(key: string) {
11        return localStorage.getItem(key);
12    }
13 
14    remove(key: string) {
15        localStorage.removeItem(key);
16    }
17}
18