ngx-skeleton-loader
Advanced tools
Changelog
[9.0.0][] - 2024-01-13
@angular/*
packages to v17Changelog
[8.1.0][] - 2023-09-12
Changelog
[8.0.1][] - 2023-08-30
Changelog
[8.0.0][] - 2023-06-20
@angular/*
packages;perf-marks
dependency library;Changelog
[7.0.0][] - 2023-02-04
NgxSkeletonLoaderModule.forRoot({ theme: /* ...list of CSS atributes */} })
By default when using NgxSkeletonLoaderModule.forRoot({ theme: /* ...list of CSS atributes */} })
the application is using this value as source of truth, overriding any local theming passed to <ngx-skeleton-loader>
component via [theme]
input.
By using NgxSkeletonLoaderModule.forRoot({ theme: { extendsFromRoot: true, /* ...list of CSS atributes */} })
in your application, you should also be aware that:
<ngx-skeleton-loader>
component will use theme
coming from NgxSkeletonLoaderModule.forRoot()
as the source of truth<!--
// ... E.G: App is using this configuration below
NgxSkeletonLoaderModule.forRoot({
theme: {
// Enabliong theme combination
extendsFromRoot: true,
// ... list of CSS theme attributes
height: '30px',
},
}),
-->
<div class="item">
<ngx-skeleton-loader></ngx-skeleton-loader>
<!-- above line will produce a skeleton component using `height: 30px;`" -->
<ngx-skeleton-loader [theme]="{background: 'blue'}"></ngx-skeleton-loader>
<!-- above line will produce a skeleton component using `height: 30px; background: blue;`" -->
<ngx-skeleton-loader [theme]="{height: '50px', background: 'red'}"></ngx-skeleton-loader>
<!-- above line will produce a skeleton component using `height: 50px; background: red;`" -->
</div>
custom-content
appearance. From now on, consumers can now add their own content inside <ng-skeleton-loader></ng-skeleton-loader>
component. So that, they can add some custom content, such as SVG, as an examplecustom-content
usageChangelog
[6.0.0][] - 2022-08-18
.loader
to .skeleton-loader
The CSS class used as namespace was changed. Previously, it was called .loader
and now is .skeleton-loader
. It might cause some issues in cases of :host
DOM style scoping usage. For the sake of semantic versioning, please bear in mind this scenario in case of :host
usage.
Changelog
[5.0.0][] - 2022-02-08
Thanks @yharaskrik
Bundle distribution are now esm2020
, fesm2015
and fesm2020
. UMD and CommonJS versions were support were removed from Angular CLI directly. So the next version for the package will be a major version to cover these changes accordingly.
@angular/cli
to v13fesm2020
Changelog
[4.0.0][] - 2021-07-28
forRoot()
more than once if module is loaded asynchronously in a submodule.". Unfortunately, this was affecting consumers and it needed to be reverted to avoid friction in other applications.If you need to have this feature in place, the suggestion is to create a specific module in your app and apply the changes on your application.
Changelog
[3.0.0][] - 2021-07-23
forRoot()
more than once if module is loaded asynchronously in a submodule. This is required in order to avoid issues in consumers. To avoid that, consumers should load the module once on the main module instead - if loading submodules async.