mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-12 05:43:03 -05:00
feat(challenge24): create challenge 24
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user