JQuery-Knob - Angular 5
Opened this issue · 4 comments
Hi guys, is it possible to us this library in angular 5?
Hey dude, there is a directive that may help you:
https://radmie.github.io/ng-knob/
(Duplicate of: #350)
I use Angular6 in my project. Using JQuery-Knob in Angular6
1、yarn add jquery or npm install jquery --save
2、yarn add @types/jquery
3、yarn add jquery-knob
4、yarn add @types/jquery-knob
5、Demo
// TestComponent
import {Component, OnInit} from '@angular/core';
import * as $ from 'jquery';
import 'jquery-knob';
@Component({
templateUrl: './test.component.html'
})
export class TestComponent implements OnInit {
ngOnInit(): void {
$(function() {
$(".dial").knob();
});
}
}
<!- test.component.html ->
<input type="text" value="75" class="dial">
I write a demo for it:
https://github.com/a1164714/jquery-knob-demo
Hey dude, there is a directive that may help you:
https://radmie.github.io/ng-knob/
(Duplicate of: #350)
That is for AngularJS (however, thanks for the link to the awesome lib that I'm thinking about porting myself)
I forked and ported this library to Angular (7). See here: https://github.com/flyer1/ng2-knob