-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed all the errors #108
base: master
Are you sure you want to change the base?
Fixed all the errors #108
Conversation
src/app/services/user.service.ts
Outdated
private readonly userSubject$: BehaviorSubject<IUserRole | null> = new BehaviorSubject<IUserRole | null>(null); | ||
public readonly user$: Observable<IUserRole | null> = this.userSubject$.asObservable(); | ||
|
||
constructor(private router: Router) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
инжетирование зависимостей сделайте с помощью inject
src/app/store/users.reducers.ts
Outdated
users: [], | ||
}; | ||
|
||
export const usersReducers = createReducer( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
у вас один reducer, нужно просто usersReducer без множественного числа
src/app/services/user.service.ts
Outdated
public readonly user$: Observable<IUserRole | null> = this.userSubject$.asObservable(); | ||
|
||
constructor() { | ||
this.router |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
зачем этот код? удалите
Исправил все ошибки и все пустые строки и пробелы и сделал форматирование