From 23f93154fa17a0f66529516bde1fccbbee591e2e Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Sat, 14 Mar 2026 00:59:12 +0700 Subject: [PATCH] feat(lib): implement input signals --- libs/ui/src/lib/toggle/toggle.component.html | 6 +++--- libs/ui/src/lib/toggle/toggle.component.ts | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libs/ui/src/lib/toggle/toggle.component.html b/libs/ui/src/lib/toggle/toggle.component.html index ac2256daa..d55da3dce 100644 --- a/libs/ui/src/lib/toggle/toggle.component.html +++ b/libs/ui/src/lib/toggle/toggle.component.html @@ -3,13 +3,13 @@ [formControl]="optionFormControl" (change)="onValueChange()" > - @for (option of options; track option) { + @for (option of options(); track option) { {{ option.label }}(); + public readonly isLoading = input(false); + public readonly options = input([]); protected readonly optionFormControl = new FormControl(null); protected readonly valueChange = output>(); public ngOnChanges() { - this.optionFormControl.setValue(this.defaultValue); + this.optionFormControl.setValue(this.defaultValue()); } public onValueChange() {