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:
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable @angular-eslint/component-selector */
|
||||
import { AsyncPipe, NgFor } from '@angular/common';
|
||||
import { Component, inject, Input } from '@angular/core';
|
||||
import { Component, Input, inject } from '@angular/core';
|
||||
import { BehaviorSubject, take } from 'rxjs';
|
||||
import { AppService } from './app.service';
|
||||
import { TopicType } from './localDB.service';
|
||||
@@ -29,8 +29,8 @@ export class ButtonDeleteComponent {
|
||||
this.message$$.next(
|
||||
result
|
||||
? `All ${this.topic} have been deleted`
|
||||
: `Error: deletion of some ${this.topic} failed`
|
||||
)
|
||||
: `Error: deletion of some ${this.topic} failed`,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,8 +16,8 @@ export class AppService {
|
||||
? topicToDelete
|
||||
.map((t) => this.dbService.deleteOneTopic(t.id))
|
||||
.reduce((acc, curr) => merge(acc, curr), of(true))
|
||||
: of(true)
|
||||
)
|
||||
: of(true),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ export class LocalDBService extends ComponentStore<DBState> {
|
||||
deleteOne = this.updater(
|
||||
(state, id: number): DBState => ({
|
||||
infos: state.infos.filter((i) => i.id !== id),
|
||||
})
|
||||
}),
|
||||
);
|
||||
|
||||
deleteOneTopic = (id: number) =>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
||||
Reference in New Issue
Block a user