correction de tous les bugs niveaux 1 (faibles)
This commit is contained in:
parent
b5bb8e7cc4
commit
f2ced83246
26 changed files with 53 additions and 38 deletions
|
|
@ -1,10 +1,30 @@
|
|||
import { Injectable } from '@angular/core';
|
||||
import {Injectable} from '@angular/core';
|
||||
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class ProfilService
|
||||
{
|
||||
public id: string = "" ;
|
||||
public profileImageUrl: string = "";
|
||||
|
||||
getId(): string
|
||||
{
|
||||
return localStorage.getItem('id');
|
||||
}
|
||||
|
||||
getProfileImageUrl(): string
|
||||
{
|
||||
return localStorage.getItem('profileImageUrl');
|
||||
}
|
||||
|
||||
setId(id: string): void
|
||||
{
|
||||
localStorage.setItem('id', id);
|
||||
}
|
||||
|
||||
setProfileImageUrl(profileImageUrl: string): void
|
||||
{
|
||||
localStorage.setItem('profileImageUrl', profileImageUrl);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue