From c07f9d66705eb4ffc81689c878bac7aca2a7f55d Mon Sep 17 00:00:00 2001 From: Dmitry Romanov Date: Wed, 24 Jul 2024 15:30:15 -0400 Subject: [PATCH] Fix geometry select --- firebird-ng/src/app/app.config.ts | 2 ++ .../src/app/resource-select/resource-select.component.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/firebird-ng/src/app/app.config.ts b/firebird-ng/src/app/app.config.ts index 5daa852..a171f11 100644 --- a/firebird-ng/src/app/app.config.ts +++ b/firebird-ng/src/app/app.config.ts @@ -1,9 +1,11 @@ import { ApplicationConfig, importProvidersFrom } from '@angular/core'; import { provideRouter } from '@angular/router'; import { routes } from './app.routes'; +import {provideAnimations} from "@angular/platform-browser/animations"; export const appConfig: ApplicationConfig = { providers: [ provideRouter(routes), + provideAnimations() ] }; diff --git a/firebird-ng/src/app/resource-select/resource-select.component.ts b/firebird-ng/src/app/resource-select/resource-select.component.ts index 1d65f65..05d4f71 100644 --- a/firebird-ng/src/app/resource-select/resource-select.component.ts +++ b/firebird-ng/src/app/resource-select/resource-select.component.ts @@ -63,7 +63,9 @@ export class ResourceSelectComponent implements OnInit { ngOnInit(): void { // Connect value changes with the control output - this.value.valueChanges.subscribe(this.valueChange.emit); + this.value.valueChanges.subscribe(()=>{ + this.valueChange.emit(this.value.value) + }); } /**