mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
fix: run prettier on all file to avoid prettier issue inside PR
This commit is contained in:
@@ -16,7 +16,7 @@ import { PersonListComponent } from './person-list.component';
|
||||
providers: [PersonService],
|
||||
selector: 'app-root',
|
||||
template: `
|
||||
<h1 class="font-semibold text-center text-3xl" title="Title">
|
||||
<h1 class="text-center text-3xl font-semibold" title="Title">
|
||||
List of Persons
|
||||
</h1>
|
||||
|
||||
@@ -30,7 +30,7 @@ import { PersonListComponent } from './person-list.component';
|
||||
</mat-form-field>
|
||||
|
||||
<app-person-list
|
||||
class="max-w-2xl w-3/4"
|
||||
class="w-3/4 max-w-2xl"
|
||||
[persons]="persons()"
|
||||
(delete)="personService.deletePerson($event)"
|
||||
(update)="personService.updatePerson($event)" />
|
||||
|
||||
@@ -16,7 +16,7 @@ export class PersonService {
|
||||
this.persons.set(
|
||||
this.fakeBackend
|
||||
.returnNewList(this.persons())
|
||||
.filter((p) => p.email !== email)
|
||||
.filter((p) => p.email !== email),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ export class PersonService {
|
||||
this.persons.set(
|
||||
this.fakeBackend
|
||||
.returnNewList(this.persons())
|
||||
.map((p) => (p.email === email ? { email, name: randFirstName() } : p))
|
||||
.map((p) => (p.email === email ? { email, name: randFirstName() } : p)),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -10,16 +10,16 @@ import { Person } from './person.model';
|
||||
template: `
|
||||
<div
|
||||
*ngFor="let person of persons"
|
||||
class="flex justify-between items-center border-b">
|
||||
class="flex items-center justify-between border-b">
|
||||
<h3>{{ person.name }}</h3>
|
||||
<div class="flex gap-10 py-1">
|
||||
<button
|
||||
class="border rounded-md p-2 bg-blue-500 text-white"
|
||||
class="rounded-md border bg-blue-500 p-2 text-white"
|
||||
(click)="update.emit(person.email)">
|
||||
UPDATE
|
||||
</button>
|
||||
<button
|
||||
class="border rounded-md p-2 bg-red-500 text-white"
|
||||
class="rounded-md border bg-red-500 p-2 text-white"
|
||||
(click)="delete.emit(person.email)">
|
||||
DELETE
|
||||
</button>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { bootstrapApplication } from '@angular/platform-browser';
|
||||
import { appConfig } from './app/app.config';
|
||||
import { AppComponent } from './app/app.component';
|
||||
import { appConfig } from './app/app.config';
|
||||
|
||||
bootstrapApplication(AppComponent, appConfig).catch((err) =>
|
||||
console.error(err)
|
||||
console.error(err),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user