@@ -201,7 +201,7 @@ export class MdcSliderDirective implements AfterContentInit, AfterViewInit, OnCh
201
201
202
202
_onChanges ( changes : SimpleChanges , callValueAccessorOnValueChange = true ) {
203
203
if ( this . _initialized ) {
204
- if ( this . isChanged ( 'isDiscrete ' , changes ) || this . isChanged ( 'hasMarkers ' , changes ) ) {
204
+ if ( this . isChanged ( 'discrete ' , changes ) || this . isChanged ( 'markers ' , changes ) ) {
205
205
for ( let handlerInfo of this . _interactionHandlers )
206
206
// workaround for uspstream bug: https://github.com/material-components/material-components-web/issues/1429
207
207
this . _registry . unlisten ( handlerInfo . type , handlerInfo . handler ) ;
@@ -355,25 +355,25 @@ export class MdcSliderDirective implements AfterContentInit, AfterViewInit, OnCh
355
355
* "Discrete slider" is a UX treatment, while having a step value is behavioral.</blockquote>
356
356
*/
357
357
@Input ( ) @HostBinding ( 'class.mdc-slider--discrete' )
358
- get isDiscrete ( ) {
358
+ get discrete ( ) {
359
359
return this . _discrete ;
360
360
}
361
361
362
- set isDiscrete ( value : any ) {
362
+ set discrete ( value : any ) {
363
363
this . _discrete = asBoolean ( value ) ;
364
364
}
365
365
366
366
/**
367
367
* Property to enable/disable the display of track markers. Display markers
368
368
* are only supported for discrete sliders. Thus they are only shown when the values
369
- * of both hasMarkers and isDiscrete equal true.
369
+ * of both markers and discrete equal true.
370
370
*/
371
371
@Input ( ) @HostBinding ( 'class.mdc-slider--display-markers' )
372
- get hasMarkers ( ) {
372
+ get markers ( ) {
373
373
return this . _markers ;
374
374
}
375
375
376
- set hasMarkers ( value : any ) {
376
+ set markers ( value : any ) {
377
377
this . _markers = asBoolean ( value ) ;
378
378
}
379
379
0 commit comments