license import { InjectionToken } from '@angular/core' ; /** Default `mat-slide-toggle` options that can be overridden. */ export interface MatSlideToggleDefaultOptions { /** Whether toggle action triggers value changes in slide toggle. */ disableToggleValue ? : boolean ; /** Whether drag action triggers value changes in slide toggle. */ disableDragValue ? : boolean ; } /** Injection token to be used to override the default options for `mat-slide-toggle`. */ export const MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS = new InjectionToken < MatSlideToggleDefaultOptions > ( 'mat-slide-toggle-default-options' , { providedIn : 'root' , factory : ( ) => ( { disableToggleValue : false , disableDragValue : false } ) } ) ;