diff --git a/.prettierignore b/.prettierignore index 95c4b52e..8e9b3aa1 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,3 +4,5 @@ /.nx/cache .angular pnpm-lock.yaml + +.nx/self-healing \ No newline at end of file diff --git a/apps/demo/src/app/app.config.ts b/apps/demo/src/app/app.config.ts index bb04ffa1..087f7ef7 100644 --- a/apps/demo/src/app/app.config.ts +++ b/apps/demo/src/app/app.config.ts @@ -1,5 +1,9 @@ import { LayoutModule } from '@angular/cdk/layout'; -import { provideHttpClient, withInterceptors } from '@angular/common/http'; +import { + provideHttpClient, + withInterceptors, + withXhr, +} from '@angular/common/http'; import { ApplicationConfig, importProvidersFrom } from '@angular/core'; import { provideAnimations } from '@angular/platform-browser/animations'; import { provideRouter, withComponentInputBinding } from '@angular/router'; @@ -10,7 +14,7 @@ export const appConfig: ApplicationConfig = { providers: [ provideRouter(appRoutes, withComponentInputBinding()), provideAnimations(), - provideHttpClient(withInterceptors([memoryHttpInterceptor])), + provideHttpClient(withXhr(), withInterceptors([memoryHttpInterceptor])), importProvidersFrom(LayoutModule), ], }; diff --git a/apps/demo/src/app/events-sample/events-sample.component.ts b/apps/demo/src/app/events-sample/events-sample.component.ts index 8c53bc04..e2e7b36d 100644 --- a/apps/demo/src/app/events-sample/events-sample.component.ts +++ b/apps/demo/src/app/events-sample/events-sample.component.ts @@ -1,5 +1,5 @@ import { CommonModule } from '@angular/common'; -import { Component, inject } from '@angular/core'; +import { Component, inject, signal } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { MatButtonModule } from '@angular/material/button'; import { MatCardModule } from '@angular/material/card'; @@ -152,7 +152,7 @@ import { BookStore } from './book.store'; export class EventsSampleComponent { readonly store = inject(BookStore); readonly dispatch = injectDispatch(bookEvents); - filterText = ''; + filterText = signal(''); toggleStock(bookId: string, event: Event) { event.stopPropagation(); diff --git a/apps/demo/src/app/flight-search-data-service-simple/flight-search-simple.component.ts b/apps/demo/src/app/flight-search-data-service-simple/flight-search-simple.component.ts index e65dfd2c..938802e6 100644 --- a/apps/demo/src/app/flight-search-data-service-simple/flight-search-simple.component.ts +++ b/apps/demo/src/app/flight-search-data-service-simple/flight-search-simple.component.ts @@ -1,5 +1,5 @@ import { JsonPipe } from '@angular/common'; -import { ChangeDetectionStrategy, Component, inject } from '@angular/core'; +import { Component, inject } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { MatButtonModule } from '@angular/material/button'; import { MatInputModule } from '@angular/material/input'; @@ -20,7 +20,6 @@ import { SimpleFlightBookingStore } from './flight-booking-simple.store'; ], selector: 'demo-flight-search', templateUrl: './flight-search-simple.component.html', - changeDetection: ChangeDetectionStrategy.OnPush, }) export class FlightSearchSimpleComponent { private store = inject(SimpleFlightBookingStore); diff --git a/apps/demo/src/app/shared/flight-card.component.html b/apps/demo/src/app/shared/flight-card.component.html index edacd384..15896e3a 100644 --- a/apps/demo/src/app/shared/flight-card.component.html +++ b/apps/demo/src/app/shared/flight-card.component.html @@ -1,3 +1,6 @@ +@let selected = this.selected(); +@let item = this.item(); +