diff --git a/apps/testing/modal/src/index.html b/apps/testing/modal/src/index.html
index ce6d8d4..f63ff68 100644
--- a/apps/testing/modal/src/index.html
+++ b/apps/testing/modal/src/index.html
@@ -1,4 +1,4 @@
-
+
diff --git a/apps/testing/modal/src/main.ts b/apps/testing/modal/src/main.ts
index 4ecc5cf..7961924 100644
--- a/apps/testing/modal/src/main.ts
+++ b/apps/testing/modal/src/main.ts
@@ -1,8 +1,8 @@
-import { appConfig } from './app/app.config';
import { bootstrapApplication } from '@angular/platform-browser';
+import { appConfig } from './app/app.config';
import { AppComponent } from './app/app.component';
bootstrapApplication(AppComponent, appConfig).catch((err) =>
- console.error(err)
+ console.error(err),
);
diff --git a/apps/testing/nested/cypress.config.ts b/apps/testing/nested/cypress.config.ts
index 7287d91..1abef9c 100644
--- a/apps/testing/nested/cypress.config.ts
+++ b/apps/testing/nested/cypress.config.ts
@@ -1,5 +1,5 @@
-import { defineConfig } from 'cypress';
import { nxComponentTestingPreset } from '@nx/angular/plugins/component-testing';
+import { defineConfig } from 'cypress';
export default defineConfig({
component: nxComponentTestingPreset(__filename),
diff --git a/apps/testing/nested/cypress/support/component-index.html b/apps/testing/nested/cypress/support/component-index.html
index ee5b073..f1b19dd 100644
--- a/apps/testing/nested/cypress/support/component-index.html
+++ b/apps/testing/nested/cypress/support/component-index.html
@@ -1,4 +1,4 @@
-
+
diff --git a/apps/testing/nested/src/app/app.component.ts b/apps/testing/nested/src/app/app.component.ts
index 8877b8c..098836b 100644
--- a/apps/testing/nested/src/app/app.component.ts
+++ b/apps/testing/nested/src/app/app.component.ts
@@ -5,6 +5,8 @@ import { ChildComponent } from './child.component';
standalone: true,
imports: [ChildComponent],
selector: 'app-root',
- template: `
`,
+ template: `
+
+ `,
})
export class AppComponent {}
diff --git a/apps/testing/nested/src/app/child.component.ts b/apps/testing/nested/src/app/child.component.ts
index e148cca..bcee84e 100644
--- a/apps/testing/nested/src/app/child.component.ts
+++ b/apps/testing/nested/src/app/child.component.ts
@@ -14,7 +14,9 @@ import { HttpService } from './http.service';
selector: 'app-input',
standalone: true,
imports: [ReactiveFormsModule],
- template: `
`,
+ template: `
+
+ `,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class InputComponent {
@@ -24,7 +26,9 @@ export class InputComponent {
@Component({
selector: 'result',
standalone: true,
- template: `
Title is {{ title }}
`,
+ template: `
+
Title is {{ title }}
+ `,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ResultComponent {
@@ -34,7 +38,9 @@ export class ResultComponent {
@Component({
selector: 'app-button',
standalone: true,
- template: `
`,
+ template: `
+
+ `,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ButtonComponent {
@@ -44,7 +50,9 @@ export class ButtonComponent {
@Component({
selector: 'app-error',
standalone: true,
- template: `
Title is required !!!
`,
+ template: `
+
Title is required !!!
+ `,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ErrorComponent {
diff --git a/apps/testing/nested/src/index.html b/apps/testing/nested/src/index.html
index 93eefa7..620e0cd 100644
--- a/apps/testing/nested/src/index.html
+++ b/apps/testing/nested/src/index.html
@@ -1,4 +1,4 @@
-
+
diff --git a/apps/testing/router-outlet/cypress.config.ts b/apps/testing/router-outlet/cypress.config.ts
index 7287d91..1abef9c 100644
--- a/apps/testing/router-outlet/cypress.config.ts
+++ b/apps/testing/router-outlet/cypress.config.ts
@@ -1,5 +1,5 @@
-import { defineConfig } from 'cypress';
import { nxComponentTestingPreset } from '@nx/angular/plugins/component-testing';
+import { defineConfig } from 'cypress';
export default defineConfig({
component: nxComponentTestingPreset(__filename),
diff --git a/apps/testing/router-outlet/cypress/support/component-index.html b/apps/testing/router-outlet/cypress/support/component-index.html
index 4d7f518..208ea71 100644
--- a/apps/testing/router-outlet/cypress/support/component-index.html
+++ b/apps/testing/router-outlet/cypress/support/component-index.html
@@ -1,4 +1,4 @@
-
+
diff --git a/apps/testing/router-outlet/src/app/book.guard.ts b/apps/testing/router-outlet/src/app/book.guard.ts
index 3fe568e..1419047 100644
--- a/apps/testing/router-outlet/src/app/book.guard.ts
+++ b/apps/testing/router-outlet/src/app/book.guard.ts
@@ -4,7 +4,7 @@ import { availableBooks } from './book.model';
export const bookGuard = (
route: ActivatedRouteSnapshot,
- router = inject(Router)
+ router = inject(Router),
) => {
const searchParam = route.queryParams?.['book'].toLowerCase();
@@ -13,7 +13,7 @@ export const bookGuard = (
availableBooks.some(
(b) =>
b.author.toLowerCase().includes(searchParam) ||
- b.name.toLowerCase().includes(searchParam)
+ b.name.toLowerCase().includes(searchParam),
);
return isBookAvailable || router.parseUrl('no-result');
diff --git a/apps/testing/router-outlet/src/app/no-book-search.component.ts b/apps/testing/router-outlet/src/app/no-book-search.component.ts
index ed41f51..17d6b97 100644
--- a/apps/testing/router-outlet/src/app/no-book-search.component.ts
+++ b/apps/testing/router-outlet/src/app/no-book-search.component.ts
@@ -2,7 +2,9 @@ import { ChangeDetectionStrategy, Component } from '@angular/core';
@Component({
standalone: true,
- template: `
No book found for this search
`,
+ template: `
+
No book found for this search
+ `,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export default class ShelfComponent {}
diff --git a/apps/testing/router-outlet/src/app/shelf.component.ts b/apps/testing/router-outlet/src/app/shelf.component.ts
index bb4fd5d..a7da5af 100644
--- a/apps/testing/router-outlet/src/app/shelf.component.ts
+++ b/apps/testing/router-outlet/src/app/shelf.component.ts
@@ -25,8 +25,8 @@ export default class ShelfComponent {
availableBooks.filter(
(b) =>
b.name.toLowerCase().includes(param) ||
- b.author.toLowerCase().includes(param)
- )
- )
+ b.author.toLowerCase().includes(param),
+ ),
+ ),
);
}
diff --git a/apps/testing/router-outlet/src/index.html b/apps/testing/router-outlet/src/index.html
index dc98015..b706580 100644
--- a/apps/testing/router-outlet/src/index.html
+++ b/apps/testing/router-outlet/src/index.html
@@ -1,4 +1,4 @@
-
+
diff --git a/apps/testing/router-outlet/src/main.ts b/apps/testing/router-outlet/src/main.ts
index 4ecc5cf..7961924 100644
--- a/apps/testing/router-outlet/src/main.ts
+++ b/apps/testing/router-outlet/src/main.ts
@@ -1,8 +1,8 @@
-import { appConfig } from './app/app.config';
import { bootstrapApplication } from '@angular/platform-browser';
+import { appConfig } from './app/app.config';
import { AppComponent } from './app/app.component';
bootstrapApplication(AppComponent, appConfig).catch((err) =>
- console.error(err)
+ console.error(err),
);
diff --git a/apps/testing/table/cypress.config.ts b/apps/testing/table/cypress.config.ts
index 7287d91..1abef9c 100644
--- a/apps/testing/table/cypress.config.ts
+++ b/apps/testing/table/cypress.config.ts
@@ -1,5 +1,5 @@
-import { defineConfig } from 'cypress';
import { nxComponentTestingPreset } from '@nx/angular/plugins/component-testing';
+import { defineConfig } from 'cypress';
export default defineConfig({
component: nxComponentTestingPreset(__filename),
diff --git a/apps/testing/table/cypress/support/component-index.html b/apps/testing/table/cypress/support/component-index.html
index a749e54..c0a4681 100644
--- a/apps/testing/table/cypress/support/component-index.html
+++ b/apps/testing/table/cypress/support/component-index.html
@@ -1,4 +1,4 @@
-
+
diff --git a/apps/testing/table/src/app/app.component.ts b/apps/testing/table/src/app/app.component.ts
index 534b449..236bc50 100644
--- a/apps/testing/table/src/app/app.component.ts
+++ b/apps/testing/table/src/app/app.component.ts
@@ -5,6 +5,8 @@ import { TableComponent } from './table.component';
standalone: true,
imports: [TableComponent],
selector: 'app-root',
- template: `
`,
+ template: `
+
+ `,
})
export class AppComponent {}
diff --git a/apps/testing/table/src/app/table.component.ts b/apps/testing/table/src/app/table.component.ts
index a2c6d4c..74df216 100644
--- a/apps/testing/table/src/app/table.component.ts
+++ b/apps/testing/table/src/app/table.component.ts
@@ -94,7 +94,7 @@ export class TableComponent
private api = inject(FakeBackendService);
readonly issues$ = this.select((s) => s.users).pipe(
- tap((t) => console.log('UserNEw ', t))
+ tap((t) => console.log('UserNEw ', t)),
);
readonly loading$ = this.select((s) => s.loading);
readonly error$ = this.select((s) => s.error);
@@ -124,11 +124,11 @@ export class TableComponent
tap((t) => console.log('user', t)),
tapResponse(
(data) => this.patchState({ users: data, loading: false }),
- (err) => this.patchState({ error: err as string, loading: false })
- )
- )
- )
- )
+ (err) => this.patchState({ error: err as string, loading: false }),
+ ),
+ ),
+ ),
+ ),
);
ngAfterViewInit(): void {
@@ -137,7 +137,7 @@ export class TableComponent
this.loadData(
this.select({
sortActive: this.sort.sortChange.pipe(
- map((s) => s.active as keyof User)
+ map((s) => s.active as keyof User),
),
sortDir: this.sort.sortChange.pipe(map((s) => s.direction)),
pageIndex: this.paginator.page.pipe(map((p) => p.pageIndex)),
@@ -146,8 +146,8 @@ export class TableComponent
sortActive: this.sort.active as keyof User,
sortDir: this.sort.direction,
pageIndex: 1,
- })
- )
+ }),
+ ),
);
}
diff --git a/apps/testing/table/src/index.html b/apps/testing/table/src/index.html
index 2eadaaa..11da4b0 100644
--- a/apps/testing/table/src/index.html
+++ b/apps/testing/table/src/index.html
@@ -1,4 +1,4 @@
-
+
diff --git a/apps/testing/todos-list/cypress.config.ts b/apps/testing/todos-list/cypress.config.ts
index 7287d91..1abef9c 100644
--- a/apps/testing/todos-list/cypress.config.ts
+++ b/apps/testing/todos-list/cypress.config.ts
@@ -1,5 +1,5 @@
-import { defineConfig } from 'cypress';
import { nxComponentTestingPreset } from '@nx/angular/plugins/component-testing';
+import { defineConfig } from 'cypress';
export default defineConfig({
component: nxComponentTestingPreset(__filename),
diff --git a/apps/testing/todos-list/cypress/support/component-index.html b/apps/testing/todos-list/cypress/support/component-index.html
index 8b1d587..57c8a3d 100644
--- a/apps/testing/todos-list/cypress/support/component-index.html
+++ b/apps/testing/todos-list/cypress/support/component-index.html
@@ -1,4 +1,4 @@
-
+
diff --git a/apps/testing/todos-list/src/app/app.component.ts b/apps/testing/todos-list/src/app/app.component.ts
index a3de393..6b61097 100644
--- a/apps/testing/todos-list/src/app/app.component.ts
+++ b/apps/testing/todos-list/src/app/app.component.ts
@@ -5,6 +5,8 @@ import { RouterOutlet } from '@angular/router';
selector: 'app-root',
standalone: true,
imports: [RouterOutlet],
- template: `
`,
+ template: `
+
+ `,
})
export class AppComponent {}
diff --git a/apps/testing/todos-list/src/app/backend.service.ts b/apps/testing/todos-list/src/app/backend.service.ts
index 2af814b..08929ed 100644
--- a/apps/testing/todos-list/src/app/backend.service.ts
+++ b/apps/testing/todos-list/src/app/backend.service.ts
@@ -101,7 +101,7 @@ export class BackendService {
const updatedTicket = { ...foundTicket, ...updates };
this.storedTickets = this.storedTickets.map((t) =>
- t.id === ticketId ? updatedTicket : t
+ t.id === ticketId ? updatedTicket : t,
);
return of(updatedTicket).pipe(delay(randomDelay()));
diff --git a/apps/testing/todos-list/src/app/detail/detail.component.ts b/apps/testing/todos-list/src/app/detail/detail.component.ts
index 5b5214c..7e5eed8 100644
--- a/apps/testing/todos-list/src/app/detail/detail.component.ts
+++ b/apps/testing/todos-list/src/app/detail/detail.component.ts
@@ -19,22 +19,28 @@ import { DetailStore } from './detail.store';
LetDirective,
],
template: `
-
Ticket Detail:
+
Ticket Detail:
- Ticket: {{ ticket.id }}
- Description: {{ ticket.description }}
+ Ticket:
+ {{ ticket.id }}
- AssigneeId: {{ ticket.assigneeId }}
+ Description:
+ {{ ticket.description }}
- Is done: {{ ticket.completed }}
+ AssigneeId:
+ {{ ticket.assigneeId }}
+
+
+ Is done:
+ {{ ticket.completed }}
diff --git a/apps/testing/todos-list/src/app/detail/detail.store.ts b/apps/testing/todos-list/src/app/detail/detail.store.ts
index 9d0f421..9425b25 100644
--- a/apps/testing/todos-list/src/app/detail/detail.store.ts
+++ b/apps/testing/todos-list/src/app/detail/detail.store.ts
@@ -36,14 +36,17 @@ export class DetailStore
loading: this.loading$,
});
- constructor(private backend: BackendService, private route: ActivatedRoute) {
+ constructor(
+ private backend: BackendService,
+ private route: ActivatedRoute,
+ ) {
super(initialState);
}
readonly loadTicket = this.effect
(
pipe(
concatLatestFrom(() =>
- this.route.params.pipe(map((p) => p[PARAM_TICKET_ID]))
+ this.route.params.pipe(map((p) => p[PARAM_TICKET_ID])),
),
tap(() => this.patchState({ loading: true, error: '' })),
mergeMap(([, id]) =>
@@ -54,11 +57,11 @@ export class DetailStore
loading: false,
ticket,
}),
- (error: unknown) => this.patchState({ error })
- )
- )
- )
- )
+ (error: unknown) => this.patchState({ error }),
+ ),
+ ),
+ ),
+ ),
);
ngrxOnStateInit() {
diff --git a/apps/testing/todos-list/src/app/list/list.component.ts b/apps/testing/todos-list/src/app/list/list.component.ts
index bc24485..8942f7c 100644
--- a/apps/testing/todos-list/src/app/list/list.component.ts
+++ b/apps/testing/todos-list/src/app/list/list.component.ts
@@ -25,7 +25,7 @@ import { RowComponent } from './ui/row.component';
LetDirective,
],
template: `
- Tickets
+ Tickets
Search
@@ -45,14 +45,13 @@ import { RowComponent } from './ui/row.component';
mode="query"
*ngIf="vm.loading"
class="mt-5">
-
+
-
+ (closeTicket)="ticketStore.done($event)">