Ionic 3 jQuery-snapPuzzle plugin
up vote
0
down vote
favorite
I'm doing a mobile application with Ionic 3. I need to use jquery plugin. The plugin's name is jQuery-snapPuzzle.
I called jquery, jquery-ui and snap-js js files in src / index.html.
Then in the "typescript" file of the page where this plugin will workimport * as $ from "jquery"; I've written.
and I added the following codes in the ionViewDidLoad section;
$(document).ready(function()
$('img.puzzle').snapPuzzle( rows: 3, columns: 3 );
);
I get the following error when I run it.
"ERROR TypeError: WEBPACK_IMPORTED_MODULE_4_jquery(...).snapPuzzle is not a function" --> https://i.stack.imgur.com/p2seo.png
After getting this error, I added the above code between index.html . This time it doesn't fail, but it doesn't work as if it didn't exist.
jquery angular ionic-framework ionic3
add a comment |
up vote
0
down vote
favorite
I'm doing a mobile application with Ionic 3. I need to use jquery plugin. The plugin's name is jQuery-snapPuzzle.
I called jquery, jquery-ui and snap-js js files in src / index.html.
Then in the "typescript" file of the page where this plugin will workimport * as $ from "jquery"; I've written.
and I added the following codes in the ionViewDidLoad section;
$(document).ready(function()
$('img.puzzle').snapPuzzle( rows: 3, columns: 3 );
);
I get the following error when I run it.
"ERROR TypeError: WEBPACK_IMPORTED_MODULE_4_jquery(...).snapPuzzle is not a function" --> https://i.stack.imgur.com/p2seo.png
After getting this error, I added the above code between index.html . This time it doesn't fail, but it doesn't work as if it didn't exist.
jquery angular ionic-framework ionic3
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm doing a mobile application with Ionic 3. I need to use jquery plugin. The plugin's name is jQuery-snapPuzzle.
I called jquery, jquery-ui and snap-js js files in src / index.html.
Then in the "typescript" file of the page where this plugin will workimport * as $ from "jquery"; I've written.
and I added the following codes in the ionViewDidLoad section;
$(document).ready(function()
$('img.puzzle').snapPuzzle( rows: 3, columns: 3 );
);
I get the following error when I run it.
"ERROR TypeError: WEBPACK_IMPORTED_MODULE_4_jquery(...).snapPuzzle is not a function" --> https://i.stack.imgur.com/p2seo.png
After getting this error, I added the above code between index.html . This time it doesn't fail, but it doesn't work as if it didn't exist.
jquery angular ionic-framework ionic3
I'm doing a mobile application with Ionic 3. I need to use jquery plugin. The plugin's name is jQuery-snapPuzzle.
I called jquery, jquery-ui and snap-js js files in src / index.html.
Then in the "typescript" file of the page where this plugin will workimport * as $ from "jquery"; I've written.
and I added the following codes in the ionViewDidLoad section;
$(document).ready(function()
$('img.puzzle').snapPuzzle( rows: 3, columns: 3 );
);
I get the following error when I run it.
"ERROR TypeError: WEBPACK_IMPORTED_MODULE_4_jquery(...).snapPuzzle is not a function" --> https://i.stack.imgur.com/p2seo.png
After getting this error, I added the above code between index.html . This time it doesn't fail, but it doesn't work as if it didn't exist.
jquery angular ionic-framework ionic3
jquery angular ionic-framework ionic3
asked Nov 9 at 20:05
Mehmet S
409
409
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
import * as $ from "jquery";
instead
declare var jquery: any;
declare var $: any;
my problem improved.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
import * as $ from "jquery";
instead
declare var jquery: any;
declare var $: any;
my problem improved.
add a comment |
up vote
0
down vote
accepted
import * as $ from "jquery";
instead
declare var jquery: any;
declare var $: any;
my problem improved.
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
import * as $ from "jquery";
instead
declare var jquery: any;
declare var $: any;
my problem improved.
import * as $ from "jquery";
instead
declare var jquery: any;
declare var $: any;
my problem improved.
answered Nov 10 at 21:09
Mehmet S
409
409
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53232618%2fionic-3-jquery-snappuzzle-plugin%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown