Skip to content
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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

dfdev2
Copy link

@dfdev2 dfdev2 commented Jan 4, 2025

No description provided.

changeDetection: ChangeDetectionStrategy.OnPush,
})
export class UsersListComponent {
readonly userService = inject(UserService);

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);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

добавьте модификаторы доступа везде

usersKey = 'users';
data = [];

constructor() {}

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);

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) => {

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);

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;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

переменные нужно называть с маленькой буквы

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants