
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
@angular2-material/slider
Advanced tools
MdSlider is a component that allows users to select from a range of values by moving the slider
thumb.
You can read more about the slider in the
Material Design spec.
Importing the module:
@NgModule({
imports: [MdSliderModule],
...
})
export class MyAppModule { }
md-slider can be used on its own as a slider with a min of 0, a max of 100, and a step of 1.
<md-slider></md-slider>
The min and max on a md-slider can be set to give a different range of values.
These can be set individually and do not need to both be set.
<md-slider min="1" max="5"></md-slider>
md-slider can be disabled so that the value cannot be changed and the thumb cannot be moved.
<md-slider disabled></md-slider>
md-slider can have a value defined so that it starts at a specific value on the slider.
<md-slider value="24"></md-slider>
md-slider can have the step defined which declares where the thumb can snap to.
<md-slider step="5"></md-slider>
md-slider can have a tick interval set to a number or to auto.
auto will automatically draw tick marks on steps that are at least 30px apart and will always draw
tick marks at the beginning and end of the slider.
Setting tick-interval to a number will draw a tick mark at every tick-interval steps. An example
of this is a tick-interval of 3 with a step of 4 will draw tick marks at every 3 steps,
which is the same as every 12 values.
<md-slider tick-interval="auto"></md-slider>
<md-slider tick-interval="3" step="4"></md-slider>
<md-slider>| Name | Type | Description |
|---|---|---|
min | number | Optional, the minimum number for the slider. Default = 0. |
max | number | Optional, the maximum number for the slider. Default = 100. |
value | number | Optional, the value to start the slider at. |
tick-interval | `"auto" | number` |
step | number | Optional, declares where the thumb will snap to. Default = 1. |
disabled | boolean | Optional, whether or not the slider is disabled. Default = false. |
FAQs
Angular 2 Material Slider
The npm package @angular2-material/slider receives a total of 15 weekly downloads. As such, @angular2-material/slider popularity was classified as not popular.
We found that @angular2-material/slider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.