I want to use this jquery plubing in my ionic project but i’ don’t know how to do it. I’ve installed jquery & it is working fine in project but i don’t know how to use this plugin in Ionic. Here’s the code
It probably isn’t. The strong recommendation is not to use both jQuery and Angular. Lots of potential performance issues. Better to find (or write) an Angular 2 library that does what you want.
Thanks for you reply but I’ve already tried it and it worked without any issue. Actually, i want to use that plugin and i’ve an external .js file. I’ve included external .js from already existing posts. I’ve tried many different methods but don’t know where i’m doing wrong.
If you understand that it’s a bad idea, why do you persist on attempting to get people to help you do it? Find an alternative that works smoothly with Angular.
I’m asking for help coz typescript can communicate with javascript but even after searching for the whole day, i couldn’t do it. That’s why i mentioned all the step which i followed to know where i’m making mistake and I’m asking again for it coz there are thousands of jquery plugins(external js code), atleast there must be a proper solution to use them in angular?
Yes, even i’ve used this plugin before but all i want is to use it in my ionic project. Is there no way to use this plugin instead of finding alternate option !!!
Alternate plugin is a second thing, there must be solution to it.
That’s why I’m asking Dear !!!
And the experts are telling you that you need to use proper channels for that communication, but I am afraid you are not taking any heed.
When you are developing an ionic app then with common sense we should understand the primary thing to do is follow ionic/angular ways, the other ways are actually secondary (if at all anything).
Having said that, I would like to know as to where did you find this syntax of calling the printThis() method in which you send in the whole tag with content to jquery rather than only the selector ?