-
Notifications
You must be signed in to change notification settings - Fork 470
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(cdk): implement tuiIsPresent
pipe
#3002
Conversation
Pull request was closed ✔️All saved screenshots (for current PR) were deleted 🗑️ |
BundleMonFiles updated (2)
Unchanged files (3)
Total files change +242B +0.04% Groups updated (1)
Final result: ✅ View report in BundleMon website ➡️ |
Codecov ReportBase: 61.88% // Head: 61.87% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #3002 +/- ##
==========================================
- Coverage 61.88% 61.87% -0.02%
==========================================
Files 1483 1490 +7
Lines 17561 17602 +41
Branches 2395 2401 +6
==========================================
+ Hits 10868 10891 +23
- Misses 6253 6273 +20
+ Partials 440 438 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
I think a nice example would be something like: <div *ngIf="count$ | async | tuiIsPresent as value"> showing how this can be used for falsy values like |
} | ||
|
||
private objectifyValue(value: string): string | null | undefined { | ||
if (value === `null`) { |
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.
nit: Looks like a job for switch
:)
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.
do you want to keep this example or completely replace it with the one above?
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.
I went ahead and replaced it since the new example is more useful 🙂
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.
@waterplea please check if it's not too complicated
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.
Looks great. Thank you!
59aae7f
to
d888687
Compare
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
Does this PR introduce a breaking change?