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

added local-storage, guard, derectives, pipes, angular material, forms #99

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

Conversation

daniyaralpiyev
Copy link

@daniyaralpiyev daniyaralpiyev commented Dec 22, 2024

telegram: Daniyar
https://t.me/the_happyy

Реализовал и добавил:
local-storage,
guard,
derectives,
pipes,
angular material,
forms

public showCatalogCompany: boolean = true;
public menuItems: string[] = upperCaseMenuItems;

isUppercase: boolean = true;

Choose a reason for hiding this comment

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

можно добавить модификатор доступа

@@ -0,0 +1,23 @@
<div class="container" shadowHighLight>

Choose a reason for hiding this comment

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

2, 4, 6, 13,20, 22 лишние пустые строки удалите их

src/app/Components/header/header.component.ts Outdated Show resolved Hide resolved
src/app/Components/header/header.component.ts Outdated Show resolved Hide resolved
} else if (result === 'user') {
this.userService.loginAsUser();
} else {
return undefined;

Choose a reason for hiding this comment

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

Введите этот промпт в Chat GPT почему нельзя возвращать undefined? В чем отличие null и undefined? Является ли хорошей практикой если функция возвращает undefined

src/app/derectives/yellow.directive.ts Outdated Show resolved Hide resolved
src/app/derectives/yellow.directive.ts Outdated Show resolved Hide resolved
case 'long':
return {dateStyle: 'long', timeStyle: 'long'};
default:
return {dateStyle: 'medium', timeStyle: 'medium'};

Choose a reason for hiding this comment

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

слетело форматирование

this.userSubject$.next({...this.user, isAdmin: false});
};

// public get isAdmin() {

Choose a reason for hiding this comment

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

удалите комментарий


@Injectable({providedIn: 'root'})
export class UsersApiService {

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