search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Cannot use DayPilot.Angular.Modal

Related article: Angular 2 Scheduler: Modal Dialog for Event Editing
Asked by Cesar
5 years ago.


We are trying to use an angular modal checking the example explained in the related page (the update event part), the console shows the following message "Uncaught TypeError: Cannot read property 'Modal' of undefined" referenced to the line "import Modal = DayPilot.Angular.Modal;". We can navigate without problems in the IDE to "Angular" namespace and to the "modal" class.

Comparing the package.json from the example and from our project we found that they are using differents versions of the daypilot-pro-angular. We have also tried to download the example daypilot-pro-angular version but is not working correctly.

Can you help us with the modal creation pls? Thanks

Answer posted by Dan Letecky [DayPilot]
5 years ago.

The modal dialog tutorial was created some time ago - the DayPilot.Angular namespace has been deprecated meanwhile.

An updated version of the tutorial is now available (it uses Angular 6 and DayPilot Pro for JavaScript 2018.2.3324):

If you need to upgrade your existing project that uses DayPilot.Angular namespace, please see the following tutorial:

It describes the steps needed for migration to the current Angular API.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.