How To Use Timetable.js In Ionic2 Typescript
Is it possible to use timetable.js in ionic2 project? http://timetablejs.org/ I tried to create timetable.d.ts as belows. declare class Timetable { constructor(); scope: string
Solution 1:
You are calling Renderer statically, which won't be a problem for javascript at runtime, that's why it still works. You can either declare it like static Renderer(tt: any);
or call it as a method of a Timetable
object as you declared. If timetable is an object that you have already created, then you can try var renderer = new timetable.Renderer(timetable)
which is a bit weird but might work.
Post a Comment for "How To Use Timetable.js In Ionic2 Typescript"