-
Notifications
You must be signed in to change notification settings - Fork 3
feat: migrated on new angular control flow (#DS-2872) #284
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
Conversation
Visit the preview URL for this PR (updated for commit 318e4b8): https://koobiq-next--prs-284-tbmhpcmy.web.app (expires Tue, 24 Sep 2024 13:50:28 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c |
80af6f5
to
8c5ba96
Compare
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.
Критичных проблем не увидел, только пару небольших моментов.
Good job!
8c5ba96
to
df55a6b
Compare
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.
Вообще совсем не понятно, что мы получаем от этого нового синтаксиса..
- ни одного common модуля не удалено (как пишут в доке https://angular.dev/reference/migrations/control-flow)
- сложные и большие шаблоны стали еще больше
- if и for добавляет лишнюю обертку над компонентом
со структурными директивами подобное вообще в одну строку смотрится гораздо лучше и читабельнее.
Единственный + который я вижу в этом синтаксисе, это замена ng-container + *ngIf на больших "кусках" шаблона.
Предлагаю завтра на синке обсудить, возможно есть неочевидные плюсы..
/> | ||
</ng-container> | ||
@if (!isComponent(kbqContent)) { | ||
@switch (true) { |
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.
какой то интересный свитч получился
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.
хорошее замечание, поправлю |
предлагаю отключить перенос тега на новую строку, только если не вмещается в 120 символов, как мы сделали в примитивах |
не нужно за собой тащить CommonModule, и как по мне темплейт становится читабельней, это дело привычки |
df55a6b
to
318e4b8
Compare
No description provided.