{"id":969,"date":"2023-05-18T05:00:00","date_gmt":"2023-05-18T12:00:00","guid":{"rendered":"https:\/\/www.angulartraining.com\/daily-newsletter\/?p=969"},"modified":"2023-05-16T15:20:32","modified_gmt":"2023-05-16T22:20:32","slug":"skeleton-loaders-with-angular","status":"publish","type":"post","link":"https:\/\/www.angulartraining.com\/daily-newsletter\/skeleton-loaders-with-angular\/","title":{"rendered":"Skeleton loaders with Angular"},"content":{"rendered":"\n<p>Skeleton loaders are grey-shaded shapes that indicate when a part of the screen is loading. Here is an example of skeleton loaders for Facebook:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"594\" height=\"330\" src=\"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/05\/image-21.png\" alt=\"\" class=\"wp-image-970\" srcset=\"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/05\/image-21.png 594w, https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/05\/image-21-300x167.png 300w\" sizes=\"auto, (max-width: 594px) 100vw, 594px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p><a href=\"https:\/\/www.npmjs.com\/package\/ngx-skeleton-loader\" target=\"_blank\" rel=\"noopener\" title=\"\">ngx-skeleton-loader<\/a> is a small component library that does just that. It gives us access to different skeleton loaders ready to be used in our applications:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"603\" height=\"599\" src=\"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/05\/image-22.png\" alt=\"\" class=\"wp-image-971\" srcset=\"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/05\/image-22.png 603w, https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/05\/image-22-300x298.png 300w, https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/05\/image-22-150x150.png 150w, https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/05\/image-22-60x60.png 60w\" sizes=\"auto, (max-width: 603px) 100vw, 603px\" \/><\/figure>\n<\/div>\n\n\n<p><\/p>\n\n\n\n<p>What&#8217;s nice about that library is that we can customize different aspects of the skeletons, such as animations and colors. You can find some <a href=\"https:\/\/ngx-skeleton-loader-sample.stackblitz.io\/\" target=\"_blank\" rel=\"noopener\" title=\"\">live examples here<\/a>.<\/p>\n\n\n\n<p>If you want to explore skeleton loaders for your application, feel free to look at my popular tutorial: <a href=\"https:\/\/blog.angulartraining.com\/how-to-use-a-skeleton-loader-with-angular-4f03ae8fa5c6\" target=\"_blank\" rel=\"noopener\" title=\"\">How to use a skeleton loader with Angular?<\/a><\/p>\n\n\n\n<p>The tutorial has several code examples that can be used as-is.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Skeleton loaders are grey-shaded shapes that indicate when a part of the screen is loading. Here is an example of skeleton loaders for Facebook: ngx-skeleton-loader is a small component library that does just that. It gives us access to different skeleton loaders ready to be used in our applications: What&#8217;s nice about that library is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,8,17],"tags":[],"class_list":["post-969","post","type-post","status-publish","format-standard","hentry","category-angular","category-components","category-tools"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/posts\/969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/comments?post=969"}],"version-history":[{"count":2,"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/posts\/969\/revisions"}],"predecessor-version":[{"id":973,"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/posts\/969\/revisions\/973"}],"wp:attachment":[{"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/media?parent=969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/categories?post=969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/tags?post=969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}