Skip to content

Commit fe6c8ae

Browse files
committed
add state service
1 parent 2f68d8c commit fe6c8ae

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { Injectable } from '@angular/core';
2+
3+
4+
@Injectable({
5+
providedIn: 'root'
6+
})
7+
export class BlackCoverStateService {
8+
public isBlackCoverShowing: boolean = false;
9+
public picture: string | null = null;
10+
11+
12+
public setIsBlackCoverShowing = (value: boolean) => {
13+
this.isBlackCoverShowing = value;
14+
}
15+
16+
public setPicture = (fileName: string) => {
17+
this.picture = fileName;
18+
}
19+
20+
public setPictureNull = () => {
21+
this.picture = null;
22+
}
23+
}

0 commit comments

Comments
 (0)