ngx-skeleton-loader
Advanced tools
Changelog
[2.10.1][] - 2021-07-13
<span>
element.Thanks @rkristelijn for raising the issue and the pull request!
Changelog
[2.10.0][] - 2021-06-15
forRoot()
method. Now you can add configure your module via forRoot()
. You can now set the default of appearance
, animation
, theme
, loadingText
, count
and/or items
.E.G.
@NgModule({
// ...
imports: [NgxSkeletonLoaderModule.forRoot({ appearance: 'circle', count: 3 )],
// ...
})
Changelog
[2.9.1][] - 2021-02-20
appearance
attribute to be checked via ngOnChanges
Changelog
[2.9.0][] - 2021-02-19
count
is not a numeric value, it will use the default value as 1
animation
is not a valid attribute, it will use the default value as progress
appearance
attribute in case of wrong configuration. Now it will show a error message on the console in case of receiving a wrong valuengOnChange
to validate count
input in case of changes via bindingREADME.md
with information about appearance
and theme
usage.Changelog
[2.8.0][] - 2021-02-18
ngAcceptInputType_count
for template checking in count input. That solves issue https://github.com/willmendesneto/ngx-skeleton-loader/issues/59. You can find more details about it in https://angular.io/guide/template-typecheckyarn build:ssr
commandperf-marks
to v1.14.1
theme
to match with ngStyle
. More details in https://angular.io/api/common/NgStyle#propertiesChangelog
[2.7.0][] - 2021-02-06
loadingText
attribute to be used as WAI-ARIA aria-valuetext
. In this case, it will render the component using "Please wait ...". Otherwise, it defaults to "Loading..."<!-- Passing loading text to be used as WAI-ARIA `aria-valuetext` -->
<!-- In this case, it will render the component using "Please wait ..." -->
<!-- Otherwise, it defaults to "Loading..." -->
<div class="skeleton-with-specific-loading-text">
<ngx-skeleton-loader loadingText="Please wait ..."></ngx-skeleton-loader>
</div>
false
as string or boolean (coming from variable value via binding) on animation
attribute in ngx-skeleton-loader
component configuration. animation will receive false
as string when attribute field it's not using binding. Component now can receive false
(boolean), "false" (string), or any other animation type via binding.<div class="item">
<!-- Disables the animation -->
<ngx-skeleton-loader animation="false"></ngx-skeleton-loader>
<!-- Disables the animation, but receiving boolean value from binding -->
<!-- Via binding it can receive `false` (boolean), "false" (string), or any other animation type -->
<ngx-skeleton-loader [animation]="classAttributeWithBooleanFalseValue"></ngx-skeleton-loader>
<!-- Uses `progress` as animation -->
<ngx-skeleton-loader animation="progress"></ngx-skeleton-loader>
<ngx-skeleton-loader></ngx-skeleton-loader>
<!-- Uses `pulse` as animation -->
<ngx-skeleton-loader animation="pulse"></ngx-skeleton-loader>
</div>
Changelog
[2.6.2][] - 2020-12-08
Removing Lighthouse "Avoid non-composited animations" issue. Lighthouse shows warnings from ngx-skeleton-loader.scss -file (progress).
"Avoid non-composited animations":
"Animations which are not composited can be janky and contribute to CLS"
To solve that, instead of using CSS background-position
the module is now using CSS translate3d
, which improves the animation by using GPU instead of CPU. Issue fixed and performance boost added 🎉
Changelog
[2.6.1][] - 2020-11-30
forRoot()
types error Generic type 'ModuleWithProviders<T>' requires 1 type argument(s)
. Closes https://github.com/willmendesneto/ngx-skeleton-loader/issues/51Changelog
[2.6.0][] - 2020-11-15
NgxSkeletonLoaderModule.forRoot()
method. Usage:import { NgModule } from '@angular/core';
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
// ... list of other app dependencies
import { AppComponent } from './app.component';
// ... list of other app components/modules
@NgModule({
declarations: [AppComponent],
imports: [NgxSkeletonLoaderModule.forRoot()],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
Changelog
[2.5.0][] - 2020-10-10
perf-marks
package to v1.14.0cubic-bezier
instead of ease-in-out