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

feat: add component scroll loading #96

Open
wants to merge 1 commit into
base: lecture-5
Choose a base branch
from

Conversation

vakulovv
Copy link

No description provided.

Copy link
Owner

@Letto228 Letto228 left a comment

Choose a reason for hiding this comment

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

Привет!
Все круто, оставил пару вопросов - буду ждать твоих ответов!)


@Directive({
selector: '[appScrollLoading]',
standalone: true,
Copy link
Owner

Choose a reason for hiding this comment

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

Почему поставил stadealone: true?

// Генерируем событие с направлением вниз
this.loadData.emit(Direction.Bottom);
}
} else if (scrollTop < offset) {
Copy link
Owner

Choose a reason for hiding this comment

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

Мы с тобой не обсуждали, что else/if - не лучшая практика?)
Если нет - могу подкинуть аргументов, если интересно, только дай знать🙃

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