File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
src/app/shared/components/skeletons Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1+ import {
2+ ChangeDetectionStrategy ,
3+ Component ,
4+ Input ,
5+ ViewEncapsulation ,
6+ } from '@angular/core' ;
7+
8+ @Component ( {
9+ selector : 'skeleton' ,
10+ template : `
11+ <div class="animate-pulse" [ngClass]="styleClass">
12+ <ng-content></ng-content>
13+ </div>
14+ ` ,
15+ changeDetection : ChangeDetectionStrategy . OnPush ,
16+ encapsulation : ViewEncapsulation . None ,
17+ } )
18+ export class SkeletonComponent {
19+ @Input ( ) styleClass ! : string ;
20+ }
Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ import { NgModule } from '@angular/core';
22import { CommonModule } from '@angular/common' ;
33
44import { BackdropLoaderComponent } from './backdrop-loader.component' ;
5+ import { SkeletonComponent } from './skeleton.component' ;
56
6- const COMPONENTS = [ BackdropLoaderComponent ] ;
7+ const COMPONENTS = [ BackdropLoaderComponent , SkeletonComponent ] ;
78
89@NgModule ( {
910 declarations : COMPONENTS ,
You can’t perform that action at this time.
0 commit comments