Ionic 4 - JS Flex Calendar

#1

Hi everybody, I expect you are doing great!

I am new with ionic and looking for some help from you.

Please, could you tell if its possible to integrate this JS calendar with ionic v4? Here is the link: https://www.npmjs.com/package/flex-calendar

I tried following the detailed steps, but I dont know how to include the calendar module into the main module.

This is what I have done so far:

  1. execute npm i flex-calendar in the console

  2. Added this to index.html

<link rel=“stylesheet” href=“bower_components/flex-calendar.css”>

<script type=“text/javascript” src=“bower_components/angular-translate/angular-translate.min.js.js”></script>

<script type=“text/javascript” src=“bower_components/flex-calendar.js”></script>

  1. And here is the supposed step to inject the module into the main module
    • angular.module(‘App’, [‘flexcalendar’])

I am not quite sure of how to do it, if anyone could give and example of how to make I would really appreciate. I am stacked at this point since long time. I have a calendar tab and my idea is to add this calendar in it.

Many thanks!!
Agus

#2

Hello,

this is one is build for angularjs. angularjs is not angular.
Use a commen js/ts or for angular build calendar.

Best regards, anna-liebt