npm i aurelia-ion-rangeslider
skinModern theme is used here but you can use whatever theme you like. Add the following to the dependencies in aurelia.json:
"jquery",
{
"name": "ion-rangeslider",
"path": "../node_modules/ion-rangeslider",
"main": "js/ion.rangeSlider",
"deps": ["jquery"],
"resources": [
"css/ion.rangeSlider.css",
"css/ion.rangeSlider.skinModern.css"
]
},
{
"name": "aurelia-ion-rangeslider",
"path": "../node_modules/aurelia-ion-rangeslider/dist/amd",
"main": "index",
"deps": ["ion-rangeslider"]
},
{
"name":"aurelia-ion-rangeslider",
"path":"../node_modules/aurelia-ion-rangeslider/dist/amd",
"main":"index.js"
}
"copyFiles": {
"node_modules/ion-rangeslider/img/*.*": "ion-rangeslider/img"
}
In main.ts add:
aurelia.use.plugin('aurelia-ion-rangeslider');
<require from="ion-rangeslider/css/ion.rangeSlider.css"></require>
<require from="ion-rangeslider/css/ion.rangeSlider.skinModern.css"></require>
<aurelia-ion-rangeslider></aurelia-ion-rangeslider>