Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49312

Use jQuery Flot plugin with ionic

$
0
0

@makville wrote:

I am trying to use flot charts for displaying charts in an ionic 3 app.

I have tried using ng2modules flot (https://www.npmjs.com/package/ng2modules-flot). It requires importing the jquery and flot js files as follows.

However, on serving the app, i get this error

Uncaught (in promise): ReferenceError: $ is not defined at FlotComponent.ngAfterViewInit

This seems to me as though a jquery based plugin (flot chart in this case) is loaded without jquery being loaded in the application.

I just cant seem to figure out a way load jquery globally in an ionic app so that the plugin can work.

Thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49312

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>