I am new to Angular 2.0 and using aspnetboilerplate template.
I am trying to integrate jQuery-Knob.
First, I included jquery.knob.min.js in scripts in .angular-cli.json:
"scripts":
[
"../src/bsb-theme/js/jquery.validate.js",
"../src/bsb-theme/js/jquery.knob.min.js"
]
Then, I made an input in dashboard.component.html:
<input type="text" class="knob" value="40"
data-width="125"
data-height="125"
data-thickness="0.25"
data-angleArc="250"
data-angleoffset="-35"
data-fgColor="#00BCD4">
But the output is a text box only.
jQuery-Knobdoesn't work out-of-the-box with Angular 2.Try this library: https://github.com/xzegga/angular2-knob
Usage
IMPORTING ANGULAR MODULE:
HTML USE:
CONFIGURING OPTIONS IN ANGULAR COMPONENT: