nl_tokens: Extends the API returned by noUiSlider with the $on function which wraps the on function to use Angular .
pl_tokens: function extendApi ( api ) { api . $on = ( eventName , callback ) => { const wrappedCallback = ( ) => { $timeout ( ( ) => { callback ( api . <mask> ( ) ) ; } ) ; } ; api . on ( eventName , wrappedCallback ) ; return ( ) => { api . off ( eventName , wrappedCallback ) ; } ; } ; return api ; }