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:
@@ -21,13 +21,13 @@ import { PersonListComponent } from './person-list.component';
|
||||
template: `
|
||||
<button
|
||||
(click)="loadList.set(true)"
|
||||
class="border border-black p-2 rounded-md">
|
||||
class="rounded-md border border-black p-2">
|
||||
Load List
|
||||
</button>
|
||||
|
||||
<app-person-list
|
||||
*ngIf="loadList()"
|
||||
class="max-w-2xl w-3/4"
|
||||
class="w-3/4 max-w-2xl"
|
||||
[persons]="persons()" />
|
||||
`,
|
||||
host: {
|
||||
|
||||
@@ -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)),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -9,11 +9,11 @@ import { Person } from './person.model';
|
||||
standalone: true,
|
||||
imports: [CommonModule, NgForTrackByModule],
|
||||
template: `
|
||||
<div class="h-[300px] relative overflow-hidden">
|
||||
<div class="relative h-[300px] overflow-hidden">
|
||||
<div class="absolute inset-0 overflow-scroll">
|
||||
<div
|
||||
*ngFor="let person of persons; trackByProp: 'email'"
|
||||
class="flex justify-between items-center border-b h-9">
|
||||
class="flex h-9 items-center justify-between border-b">
|
||||
<h3>{{ person.name }}</h3>
|
||||
<p>{{ person.email }}</p>
|
||||
</div>
|
||||
|
||||
@@ -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