mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-13 14:23:02 -05:00
fix: run prettier on all file to avoid prettier issue inside PR
This commit is contained in:
@@ -16,19 +16,19 @@ export class FakeDBService extends ComponentStore<{
|
||||
readonly teachers$ = this.select((state) => state.teachers);
|
||||
readonly randomTeacher$ = this.select(
|
||||
this.teachers$,
|
||||
(teachers) => teachers[randNumber({ max: teachers.length - 1 })]
|
||||
(teachers) => teachers[randNumber({ max: teachers.length - 1 })],
|
||||
);
|
||||
|
||||
readonly students$ = this.select((state) => state.students);
|
||||
readonly randomStudents$ = this.select(
|
||||
this.students$,
|
||||
(students) => students[randNumber({ max: students.length - 1 })]
|
||||
(students) => students[randNumber({ max: students.length - 1 })],
|
||||
);
|
||||
|
||||
readonly schools$ = this.select((state) => state.schools);
|
||||
readonly randomSchool$ = this.select(
|
||||
this.schools$,
|
||||
(schools) => schools[randNumber({ max: schools.length - 1 })]
|
||||
(schools) => schools[randNumber({ max: schools.length - 1 })],
|
||||
);
|
||||
|
||||
constructor() {
|
||||
|
||||
@@ -5,7 +5,7 @@ import { BehaviorSubject } from 'rxjs';
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class PushService {
|
||||
private notificationSubject = new BehaviorSubject<Push | undefined>(
|
||||
undefined
|
||||
undefined,
|
||||
);
|
||||
notification$ = this.notificationSubject.asObservable();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user