-
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
farrukh-first-task #111
base: master
Are you sure you want to change the base?
farrukh-first-task #111
Conversation
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class UsersListComponent { | ||
readonly userService = inject(UserService); |
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.
добавьте модификаторы доступа
providedIn: 'root', | ||
}) | ||
export class LocalStorageService { | ||
readonly userServices = inject(UserService); |
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.
добавьте модификаторы доступа везде
usersKey = 'users'; | ||
data = []; | ||
|
||
constructor() {} |
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.
удалите пустой construstor
changeDetection: ChangeDetectionStrategy.OnPush, | ||
}) | ||
export class UserDialogComponent { | ||
readonly data = inject(MAT_DIALOG_DATA); |
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.
добавляйте модификаторы доступа
data: item, | ||
}); | ||
|
||
dialogRef.afterClosed().subscribe((result: CreateUser) => { |
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.
нужно добавить отписку
}) | ||
export class LocalStorageService { | ||
private readonly store = inject(Store); | ||
users$ = this.store.select(selectUsers); |
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.
модификаторы доступа добавьте и readonly
}) | ||
export class UserDialogComponent { | ||
readonly data = inject(MAT_DIALOG_DATA); | ||
public IsEdit = this.data.isEdit; |
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.
переменные нужно называть с маленькой буквы
No description provided.