Browse Source

update: remove unused imports

pull/23917/head
sumeyye 2 months ago
parent
commit
ec35e775b3
  1. 1
      npm/ng-packs/apps/dev-app/src/app/dynamic-form-page/dynamic-form-page.component.ts
  2. 2
      npm/ng-packs/packages/components/dynamic-form/src/dynamic-form-field/dynamic-form-field-host.component.ts
  3. 2
      npm/ng-packs/packages/components/dynamic-form/src/dynamic-form.component.ts
  4. 1
      npm/ng-packs/packages/components/dynamic-form/src/dynamic-form.service.ts

1
npm/ng-packs/apps/dev-app/src/app/dynamic-form-page/dynamic-form-page.component.ts

@ -5,7 +5,6 @@ import { FormConfigService } from './form-config.service';
@Component({
selector: 'app-dynamic-form-page',
templateUrl: './dynamic-form-page.component.html',
standalone: true,
imports: [DynamicFormComponent],
})
export class DynamicFormPageComponent implements OnInit {

2
npm/ng-packs/packages/components/dynamic-form/src/dynamic-form-field/dynamic-form-field-host.component.ts

@ -5,12 +5,10 @@ import {
ChangeDetectionStrategy,
forwardRef,
Type,
Injector,
effect,
DestroyRef,
inject,
input,
ChangeDetectorRef,
} from '@angular/core';
import {
ControlValueAccessor, NG_VALUE_ACCESSOR, FormControl, ReactiveFormsModule

2
npm/ng-packs/packages/components/dynamic-form/src/dynamic-form.component.ts

@ -7,7 +7,6 @@ import {
OnInit,
DestroyRef,
ChangeDetectorRef,
effect
} from '@angular/core';
import { FormGroup, ReactiveFormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
@ -54,7 +53,6 @@ export class DynamicFormComponent implements OnInit {
}
submit() {
console.log(this.dynamicForm.valid, this.dynamicForm.value);
if (this.dynamicForm.valid) {
this.onSubmit.emit(this.dynamicForm.getRawValue());
} else {

1
npm/ng-packs/packages/components/dynamic-form/src/dynamic-form.service.ts

@ -2,7 +2,6 @@ import {Injectable, inject} from '@angular/core';
import {FormControl, FormGroup, ValidatorFn, Validators, FormBuilder} from '@angular/forms';
import {FormFieldConfig, ValidatorConfig} from './dynamic-form.models';
import { RestService } from '@abp/ng.core';
import type { ProfileDto } from '@abp/ng.account.core/proxy';
@Injectable({
providedIn: 'root'

Loading…
Cancel
Save