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
Few improvements #56
Comments
Hi @rafaelss95 , thanks for raising this issue. Ok, so let's try to discuss each of these points since it's an issue covering different points:
Nice findings. I'm applying these changes at the moment, thanks for the suggestions! Another thing is that the theme is not compatible with NgStyle, so we can't pass something like {'max-width.px': widthExp} as the current signature is {[k: string]: string;} Actually, this is a design decision. Since you can use Better typings with strict mode... Could you share a real scenario when you'll have to use AsyncPipe for it and that |
AT TIME:
|
Hey @willmendesneto sorry for late response. I saw that you made progress with this, and I'd want to say thanks for this awesome lib and for providing a fast feedback on these suggestions. Btw, could we have a way to pass a default config to the ngx-skeleton-loader/projects/ngx-skeleton-loader/src/lib/ngx-skeleton-loader.module.ts Line 12 in bb7ad60
It'd be really nice to set a custom That being said, let me try to address the remaining two points...
Hmm, I don't think my suggestion was clear enough. Let me try to explain better now... As the ngx-skeleton-loader/projects/ngx-skeleton-loader/src/lib/ngx-skeleton-loader.html Line 16 in a75ad6c
I don't get why it isn't compatible with
We don't even have to go that far, by using examples with <ngx-skeleton-loader count="5"></ngx-skeleton-loader> You'll receive Type 'string' is not assignable to type 'number'. |
Thanks for elaborate on the issue. Maybe we should split that in few other issues to make it easier to manage, but definitely some improvements to be added! I’m not sure if I’ll have some time these days to apply that, but pull requests are more than welcome (It’s totally fine if you can’t raise them, I can add them)! |
Sharing some updates:
|
I'm closing this issue for now since it was a lot of issues in a single one. Please feel free to open a single issue, so we could discuss more and see if it's valuable for the module! And thanks again for raising those points 🎉 |
Hey @willmendesneto, thanks for addressing this! I've just updated right now and I've encountered a problem that I reported in #61 and a missing suggestion in #62. |
I'm submitting a ... (check one with "x")
Suggestions:
OnPush
change detection for performance reasons;@Input
for changing the "Loading..." text (ngx-skeleton-loader/projects/ngx-skeleton-loader/src/lib/ngx-skeleton-loader.html
Line 7 in 0f26434
null
/undefined
properties, for example. A really usual case is the use withAsyncPipe
where the options could be undefined.ngAcceptInputType_*
static members could help here.Also, it seems that
animation
can't accept literalfalse
(ngx-skeleton-loader/projects/ngx-skeleton-loader/src/lib/ngx-skeleton-loader.component.ts
Line 17 in 0f26434
Another thing is that the
theme
is not compatible withNgStyle
, so we can't pass something like{'max-width.px': widthExp}
as the current signature is{[k: string]: string;}
I can try to help by sending a PR, if it is desirable. Thanks for this amazing lib :)
The text was updated successfully, but these errors were encountered: