Could you please explain why the modal opens and then closes instantly when I click on the Create Project
button?
https://example.com/edit/angular-code
I am trying to display a component within the modal using Angular Material.
portafolio.component.ts
import { CreateProjectComponent } from '../create-project/create-project.component';
import { MatDialog } from '@angular/material';
constructor(public dialog: MatDialog) { }
openAddModal() {
let dialogRef = this.dialog.open(CreateProjectComponent, {
width: '600px'
});
}