Menu

Post image 1
Post image 2
1 / 2
0

Angular: Better Loading Indicator Directive With CDK

DEV Community·Adam·28 days ago
#3PiX69zQ
Reading 0:00
15s threshold

In my last post I demonstrated how to make an Angular loading indicator without the CDK. In this post I will show you how to make an loading indicator using CDK that does not rely on observables and it supports promises and resources as well as observables. Loading Component Fist lets create our component that will simply contain the backdrop and indicator loader-component.ts import { Component , ChangeDetectionStrategy } from ' @angular/core ' ; @ Component ({ selector : ' app-loader ' , templateUrl : ' ./loader-component.html ' , styleUrls : [ ' ./loader-component.scss ' ], changeDetection : ChangeDetectionStrategy .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More