WebPack Angular 2上的PrimeNG计划
发布时间:2020-12-17 18:04:55 所属栏目:安全 来源:网络整理
导读:是否有任何人已经获得PrimeNG计划工作webpack angular 2应用程序?像 this橡木一样,我无法让它工作,不像他我还不能. 在我的vendor.ts中,我加载了所需的库: require('script!../node_modules/jquery/dist/jquery.js');require('script!../node_modules/momen
是否有任何人已经获得PrimeNG计划工作webpack angular 2应用程序?像
this橡木一样,我无法让它工作,不像他我还不能.
在我的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:在我尝试插入日程表之前我插入一个按钮只是为了检查我的Prime是否正常连接,它看起来是100% 如果有人能帮助我,请尽我所能 谢谢 解决方法
我遇到过同样的问题.然后发现我有导入’脚本!jquery’;稍后在我的代码中覆盖fullcalendar插件.一旦我删除了第二个导入/要求它工作.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |