Add ESLint integration and Angular linting support
Configured ESLint for the project with Angular and TypeScript support. Added angular-eslint dependencies, updated angular.json to include linting, and created eslint.config.js for lint rules. Updated package.json and package-lock.json with new dev dependencies.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Component, Inject } from '@angular/core';
|
||||
import { Component, inject } from '@angular/core';
|
||||
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
@@ -63,7 +63,10 @@ import { MatIconModule } from '@angular/material/icon';
|
||||
`],
|
||||
})
|
||||
export class ImageDialogComponent {
|
||||
constructor(@Inject(MAT_DIALOG_DATA) public data: { title: string; src: string }) {
|
||||
console.log(data.title);
|
||||
}
|
||||
data = inject<{
|
||||
title: string;
|
||||
src: string;
|
||||
}>(MAT_DIALOG_DATA);
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user