@@ -15,7 +15,7 @@ import { ControlValueAccessor, NG_VALUE_ACCESSOR } from "@angular/forms";
1515/**
1616 * Used to select from ranges of values. [See here](https://www.carbondesignsystem.com/components/slider/usage) for usage information.
1717 *
18- * The simpelist possible slider usage looks something like:
18+ * The simplest possible slider usage looks something like:
1919 * ```html
2020 * <ibm-slider></ibm-slider>
2121 * ```
@@ -102,7 +102,7 @@ export class Slider implements AfterViewInit, OnDestroy, ControlValueAccessor {
102102 @Input ( ) max = 100 ;
103103 /** The interval for our range */
104104 @Input ( ) step = 1 ;
105- /** Set the inital value. Avliable for two way binding */
105+ /** Set the initial value. Available for two way binding */
106106 @Input ( ) set value ( v ) {
107107 if ( v > this . max ) {
108108 v = this . max ;
@@ -126,7 +126,7 @@ export class Slider implements AfterViewInit, OnDestroy, ControlValueAccessor {
126126 get value ( ) {
127127 return this . _value ;
128128 }
129- /** Base ID for the slider. The min and max labels get IDs `${this.id}-bottom-range` and `${this.id}-top-range` respectivly */
129+ /** Base ID for the slider. The min and max labels get IDs `${this.id}-bottom-range` and `${this.id}-top-range` respectively */
130130 @Input ( ) id = `slider-${ Slider . count ++ } ` ;
131131 /** Value used to "multiply" the `step` when using arrow keys to select values */
132132 @Input ( ) shiftMultiplier = 4 ;
@@ -207,7 +207,7 @@ export class Slider implements AfterViewInit, OnDestroy, ControlValueAccessor {
207207 this . onTouched = fn ;
208208 }
209209
210- /** Recives a value from the model */
210+ /** Receives a value from the model */
211211 writeValue ( v : any ) {
212212 this . value = v ;
213213 }
@@ -271,7 +271,7 @@ export class Slider implements AfterViewInit, OnDestroy, ControlValueAccessor {
271271 this . value = event . target . value ;
272272 }
273273
274- /** Handles clicks on the range track, and setting the value to it's "real" equivilent */
274+ /** Handles clicks on the range track, and setting the value to it's "real" equivalent */
275275 onClick ( event ) {
276276 if ( this . disabled ) { return ; }
277277 const trackLeft = this . track . nativeElement . getBoundingClientRect ( ) . left ;
0 commit comments