chrv-components 1.11.20 → 1.11.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, input, Component, Injectable, Directive, ElementRef, EventEmitter, output, viewChild, Input, Output, signal, HostListener, ContentChildren, ChangeDetectorRef, ChangeDetectionStrategy, PLATFORM_ID, computed, model, InjectionToken, ViewContainerRef, ViewChild,
|
|
2
|
+
import { inject, input, Component, Injectable, Directive, ElementRef, EventEmitter, output, viewChild, Input, Output, signal, HostListener, ContentChildren, ChangeDetectorRef, effect, ChangeDetectionStrategy, PLATFORM_ID, computed, model, InjectionToken, ViewContainerRef, ViewChild, Inject, ApplicationRef, EnvironmentInjector, createComponent, Injector } from '@angular/core';
|
|
3
3
|
import * as i2$4 from '@angular/router';
|
|
4
4
|
import { Router, RouterModule } from '@angular/router';
|
|
5
5
|
import { MatButton, MatButtonModule } from '@angular/material/button';
|
|
@@ -2525,6 +2525,9 @@ class ChrFormComponent {
|
|
|
2525
2525
|
};
|
|
2526
2526
|
if (this.controls().length > 0 && this.sections().length > 0)
|
|
2527
2527
|
console.warn("You can't use both controls and sections in the same form");
|
|
2528
|
+
effect(() => {
|
|
2529
|
+
this.set(this.model());
|
|
2530
|
+
});
|
|
2528
2531
|
}
|
|
2529
2532
|
ngOnInit() {
|
|
2530
2533
|
this.sections()
|