
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
ng5-slider
Advanced tools
Self-contained, mobile friendly slider component for Angular 5+ based on angularjs-slider
Website: https://angular-slider.github.io/ng5-slider/
Self-contained, mobile friendly slider component for Angular 5+ based on angularjs-slider.
Single slider - StackBlitz
Range slider - StackBlitz
Slider with ticks - StackBlitz
Customised slider - StackBlitz
Slider with custom style - StackBlitz
Vertical slider - StackBlitz
To add the slider to your Angular project:
npm install --save ng5-slider
Once installed, add the slider to your app.module.ts
:
import { Ng5SliderModule } from 'ng5-slider';
...
@NgModule({
...
imports: [
...
Ng5SliderModule,
...
],
...
})
export class AppModule {}
Now you can use the slider component in your app components, for example in app.component.ts
:
import { Options } from 'ng5-slider';
...
@Component({...})
export class AppComponent {
value: number = 100;
options: Options = {
floor: 0,
ceil: 200
};
}
And in template file app.component.html
:
<ng5-slider [(value)]="value" [options]="options"></ng5-slider>
Full API documentation is available on official website.
An overview of how to apply your own style to the slider is described in STYLING.md.
As of v1.2.0 the slider features CSS animations of slider movement. If you prefer the previous behaviour, without animations, you can set the flag animate: false
in your slider options.
In addition to mouse/touch events, the slider can also be controlled through keyboard. The available shortcuts are:
The slider allows for customising how to implement tooltips. See TOOLTIPS.md for more information.
Before reporting a new bug, please look at KNOWN_ISSUES.md for a list of known problems and their workarounds. New bugs reports for these problems will not be accepted.
You can report any bugs as Github issues.
Please describe the issue in detail pasting any relevant code, or preferrably a StackBlitz with reproduction of the problem by forking and editing this sample StackBlitz. Please also provide the version of NPM package you are using.
For list of changes and bugfixes, see CHANGELOG.md.
If you would like to contribute to the project, see DEVELOPERS.md.
The project is licensed under the MIT license.
1.2.6
FAQs
Self-contained, mobile friendly slider component for Angular 5+ based on angularjs-slider
The npm package ng5-slider receives a total of 8,568 weekly downloads. As such, ng5-slider popularity was classified as popular.
We found that ng5-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
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.