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';
2
2
import { CommonModule } from '@angular/common' ;
3
3
4
4
import { BackdropLoaderComponent } from './backdrop-loader.component' ;
5
+ import { SkeletonComponent } from './skeleton.component' ;
5
6
6
- const COMPONENTS = [ BackdropLoaderComponent ] ;
7
+ const COMPONENTS = [ BackdropLoaderComponent , SkeletonComponent ] ;
7
8
8
9
@NgModule ( {
9
10
declarations : COMPONENTS ,
You can’t perform that action at this time.
0 commit comments