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

Not working on Ionic2 #24

Open
avongeric opened this issue Jan 12, 2018 · 2 comments
Open

Not working on Ionic2 #24

avongeric opened this issue Jan 12, 2018 · 2 comments

Comments

@avongeric
Copy link

I tried using this in my ionic app as I also include jquery library. Below is was I did;

  1. npm install patternlock
  2. import * as patternLock from 'PatternLock';
  3. npm install jquery
  4. import $ from "jquery";

With the above, I do the initialization like this but nothin work. It just some the SVG tag I included on the html which doesnt enable me to draw the pattern:

var lockset = new patternLock("#patternHolder7", { onPattern: function (pattern) { // Context is the pattern lock instance console.log(pattern) } });
capture

@malkafly
Copy link

same here

@Malkiat-Singh
Copy link

Hi
@malkafly @ericxander
I have import this like

import PatternLock from 'patternlock';

also jquery npm installed

and copy the css from patternlock node module to the same page like lockPage.ts
in
ngAfterViewInit(): any {
this.lockset = new PatternLock("#patternHolder7", {
matrix: [4, 4]
});
}

Its working awesome

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

3 participants