Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70617

Adding a pure JS library to Ionic using NPM

$
0
0

@JerryBels wrote:

I’m trying to include one of these :

He-Date

HebCal

To my Ionic app to be able to transform gregorian dates to hebrew calendar and the other way around.

I’m having a very hard time understanding how to import a script like this (that is pure JS) to my app. I tried to follow Ionic’s tutorial and looked all over the web but didn’t seem to find anything concrete. When following the tutorial, I add

import HeDate from 'he-date';

for example to my component, but new HeDate() can’t be used after that so I guess something is missing.

What I mostly want to understand : how to add ANY pure JS to an angular app ?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70617

Trending Articles



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