有没有人有PrimeNG日程安排工作的webpack角2应用程序?像this橡木我不能得到它的工作,不像他,我仍然不能。WebPack Angular 2 PrimeNG日程安排
在我vendor.ts我加载所需的库:
require('script!../node_modules/jquery/dist/jquery.js');
require('script!../node_modules/moment/moment.js');
require('script!../node_modules/fullcalendar/dist/fullcalendar.js');
在我的组件我导入时间表从primeng
import {Schedule} from 'primeng/components/schedule/schedule';
,并添加指令
directives : [Schedule]
和在我看来,
<p-schedule [events]="events"></p-schedule>
它调整我this.schedule.fullCalendar不是一个函数。在schedule.js中。
PS:之前,我试图插入我插入一个按钮,日程安排只是为了检查,如果我的总理正确挂接,它看起来100%
如果有人能帮助我,请即时在我无计可施
谢谢
你是否发现错误的原因 - 具有相同的问题 –