WebPack Angular 2上的PrimeNG计划

3uP*_*riC 5 fullcalendar webpack primeng angular

是否有任何人已经获得PrimeNG计划工作webpack angular 2应用程序?像这样的橡木我不能让它工作,不像他我还不能.

在我的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');
Run Code Online (Sandbox Code Playgroud)

在我的组件中,我从primeng导入计划

import {Schedule} from 'primeng/components/schedule/schedule';
Run Code Online (Sandbox Code Playgroud)

并添加指令

 directives : [Schedule]
Run Code Online (Sandbox Code Playgroud)

在我看来

<p-schedule [events]="events"></p-schedule>
Run Code Online (Sandbox Code Playgroud)

它告诉我this.schedule.fullCalendar不是一个函数.在schedule.js中.

PS:在我尝试插入日程表之前我插入一个按钮只是为了检查我的Prime是否正常连接,它看起来是100%

如果有人能帮助我,请尽我所能

谢谢

Wil*_*han 0

我遇到过同样的问题。然后发现我import 'script!jquery';后来在代码中覆盖了 fullcalendar 插件。一旦我删除了第二个导入/要求,它就起作用了。