Ionic2 How to use JQuery Plugin in Page

Nho Huynh picture Nho Huynh · Jul 2, 2016 · Viewed 9.7k times · Source

I'm a newbie of ionic 2, i create project and need to jquery plugin link colorbox, slick-carousel...

I've run the command in a terminal

npm install jquery slick-carousel
typings install jquery --ambient --save
typings install slick-carousel --ambient --save

I have imported the JQuery:

import * as JQuery from 'jquery';
import * as slick from 'slick-carousel';

Then ionic error is: Can not find module 'slick-carousel'.

Please help me solve this problem, or have examples ready so I can refer to.

Thanks all!

Answer

Nils Wittler picture Nils Wittler · Jan 12, 2017

If anyone it reading this in 2017:

The page event ionViewLoaded() is not valid anymore. It is ionViewDidLoad() in the current RC4 version.

For future reference: http://ionicframework.com/docs/v2/api/navigation/NavController/#lifecycle-events