Access to $ (angular JQuery) in a ts file in Ionic 2


#1

Does anyone know how to get access to the $ (JQuery) static instance in a ts file?

Thx


#2

typings install jquery

and

import * as $ from {jquery}

furthermore: http://mhartington.io/post/ionic2-external-libraries/


#3

Thanks Max. I’m still getting an error that it cannot find jquery module during run time. Do I need to install the same version of jquery as angular 2.0 in order for it to work?


#4

full solution can be found in this thread :slight_smile:


#5

Thank you Ryan. I got it working the same way. Thx for taking out time to reply here