nl_tokens: Add ngModel controls to the directive . This allows the use of ngModel to set and get the value in the slider . It uses the noUiSlider API s get and set functions so no custom formatters need to be defined for ngModel . The ngModelOptions can be used .
pl_tokens: function bindNgModelControls ( api ) { ngModel . $render = ( ) => { api . <mask> ( ngModel . $modelValue ) ; } ; api . on ( 'update' , ( ) => { const positions = api . get ( ) ; ngModel . $setViewValue ( positions ) ; } ) ; }