Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JQuery-Knob - Angular 5 #357

Open
DaoFof opened this issue Apr 11, 2018 · 4 comments
Open

JQuery-Knob - Angular 5 #357

DaoFof opened this issue Apr 11, 2018 · 4 comments

Comments

@DaoFof
Copy link

DaoFof commented Apr 11, 2018

Hi guys, is it possible to us this library in angular 5?

@samudiogo
Copy link

Hey dude, there is a directive that may help you:

https://radmie.github.io/ng-knob/

(Duplicate of: #350)

@a1164714
Copy link

a1164714 commented Aug 15, 2018

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">

6、get result
image

I write a demo for it:
https://github.com/a1164714/jquery-knob-demo

@flyer1
Copy link

flyer1 commented Jan 28, 2019

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)

@flyer1
Copy link

flyer1 commented Jan 29, 2019

I forked and ported this library to Angular (7). See here: https://github.com/flyer1/ng2-knob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants