account, myListings and emailUs pages
This commit is contained in:
16
bizmatch/src/app/services/shared.service.ts
Normal file
16
bizmatch/src/app/services/shared.service.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { BehaviorSubject } from 'rxjs';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class SharedService {
|
||||
private profilePhotoSource = new BehaviorSubject<string>(null);
|
||||
currentProfilePhoto = this.profilePhotoSource.asObservable();
|
||||
|
||||
constructor() {}
|
||||
|
||||
changeProfilePhoto(photoUrl: string) {
|
||||
this.profilePhotoSource.next(photoUrl);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user