feat(challenge24): create challenge 24

This commit is contained in:
thomas
2023-06-12 21:52:41 +02:00
parent 58a6632552
commit f1bd68d78e
7 changed files with 90 additions and 18 deletions

View File

@@ -13,14 +13,16 @@ import { SliderComponent } from './slider.component';
[maxValue]="30"
(valueChange)="slider1Value.set($event)" />
<h2>Slider 2: {{ slider2Value() }}</h2>
<p>Enabled only if Slider 1 > 20</p>
<app-slider
[step]="10"
[maxValue]="1000"
[disabled]="slider1Value() < 20"
(valueChange)="slider2Value.set($event)" />
`,
styles: [''],
})
export class AppComponent {
slider1Value = signal(0);
slider1Value = signal(10);
slider2Value = signal(0);
}