Migrated depreciated imports
This commit is contained in:
1 parent
47428ee891
commit
381b76de9c
26 files changed
+2132
-1621
No files matched your search
@@ -1,7 +1,9 @@
|
||||
<div class="modal-backdrop" *ngIf="isOpen">
|
||||
<div class="modal">
|
||||
<button class="close-btn" (click)="closeModal()">✖</button>
|
||||
<h2>{{ title }}</h2>
|
||||
<ng-content></ng-content>
|
||||
@if (isOpen) {
|
||||
<div class="modal-backdrop">
|
||||
<div class="modal">
|
||||
<button class="close-btn" (click)="closeModal()">✖</button>
|
||||
<h2>{{ title }}</h2>
|
||||
<ng-content></ng-content>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
@@ -1,13 +1,11 @@
|
||||
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
||||
import {NgIf} from '@angular/common';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'app-modal',
|
||||
templateUrl: './modal.component.html',
|
||||
styleUrls: ['./modal.component.css'],
|
||||
imports: [
|
||||
NgIf
|
||||
]
|
||||
imports: []
|
||||
})
|
||||
export class ModalComponent {
|
||||
@Input() isOpen: boolean = false;
|
||||
|
||||
Reference in new issue
Block a user