Skip to content

Commit

Permalink
fix(demo): use of initialValue
Browse files Browse the repository at this point in the history
  • Loading branch information
homj committed Nov 16, 2023
1 parent 79cbae1 commit 360103d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/demo/src/app/components/button/button.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import { bindAttribute, useAttribute, useBooleanAttribute } from '@bynary/compos
import { provideBaseClass, useModifier, useModifierGroup } from '@bynary/composables/class';
import { useActivate } from '@bynary/composables/observer';

/**
* A demo button
*/
@Component({
selector: 'demo-button',
standalone: true,
Expand All @@ -21,7 +24,7 @@ export class ButtonComponent {
readonly type = useAttribute('type', { defaultValue: 'button' });
readonly disabled = useBooleanAttribute('disabled');

readonly loading = useModifier('loading', { applyInitially: false });
readonly loading = useModifier('loading', { initialValue: false });

readonly appearance = useModifierGroup('solid');

Expand Down

0 comments on commit 360103d

Please sign in to comment.