Migrate existing control flow directives to use new control-flow schematic
This commit is contained in:
committed by
Aditya Chandel
parent
246efdaa34
commit
0f852ef068
+5
-3
@@ -1,3 +1,5 @@
|
||||
<div *ngIf="loading" class="loading-overlay">
|
||||
<p-progressSpinner></p-progressSpinner>
|
||||
</div>
|
||||
@if (loading) {
|
||||
<div class="loading-overlay">
|
||||
<p-progressSpinner></p-progressSpinner>
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -2,15 +2,14 @@ import {Component, OnInit, OnDestroy, inject} from '@angular/core';
|
||||
import { Subscription } from 'rxjs';
|
||||
import {LoadingService} from '../../../core/service/loading.service';
|
||||
import {ProgressSpinner} from 'primeng/progressspinner';
|
||||
import {NgIf} from '@angular/common';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'app-loading-overlay',
|
||||
templateUrl: './loading-overlay.component.html',
|
||||
imports: [
|
||||
ProgressSpinner,
|
||||
NgIf
|
||||
],
|
||||
ProgressSpinner
|
||||
],
|
||||
standalone: true,
|
||||
styleUrls: ['./loading-overlay.component.scss']
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user