File tree 2 files changed +14
-4
lines changed
projects/ngx-custom-carousel/src/lib/components/ngx-custom-carousel
2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,8 @@ export class NgxCustomCarouselComponent
39
39
}
40
40
41
41
ngOnChanges ( changes : SimpleChanges ) : void {
42
- if ( changes [ 'enableControls' ] ) {
43
- this . isControlEnabled = changes [ 'enableControls' ] . currentValue ;
44
- if ( this . isControlEnabled ) {
42
+ if ( changes [ 'enableAutoSwitch' ] ) {
43
+ if ( changes [ 'enableAutoSwitch' ] . currentValue ) {
45
44
this . startInterval ( ) ;
46
45
} else {
47
46
this . stopInterval ( ) ;
Original file line number Diff line number Diff line change 22
22
type ="number "
23
23
matInput
24
24
[formControl] ="delay "
25
- placeholder ="Delay in ms " />
25
+ placeholder ="Delay in ms "
26
+ [min] ="100 " />
26
27
@if (
27
28
delay.hasError('positiveInteger') &&
28
29
!delay.hasError('required')
34
35
> Delay is < strong > required</ strong > </ mat-error
35
36
>
36
37
}
38
+ @if (
39
+ !delay.hasError('positiveInteger') &&
40
+ !delay.hasError('required') &&
41
+ delay.hasError('min')
42
+ ) {
43
+ < mat-error
44
+ > Minimum value should be
45
+ < strong > 100</ strong > </ mat-error
46
+ >
47
+ }
37
48
</ mat-form-field >
38
49
</ form >
39
50
</ div >
You can’t perform that action at this time.
0 commit comments