【问题标题】:PrimeNg Schedule styles do not workPrimeNg 时间表样式不起作用
【发布时间】:2017-08-09 14:32:44
【问题描述】:

我无法让primeng中的日程表样式正常工作。 Image Here

【问题讨论】:

  • 你遇到了什么麻烦?你能发布代码和错误消息吗?
  • 我没有收到任何错误消息。您可以看到我发布的图片遇到的问题。

标签: angular primeng


【解决方案1】:

安装

npm install fullcalendar
npm install jquery
npm install moment

然后将依赖项包含在 angular-cli.json 中

在样式下添加

"../node_modules/fullcalendar/dist/fullcalendar.min.css"

并在脚本下添加

 ../node_modules/jquery/dist/jquery.min.js
 "../node_modules/fullcalendar/dist/fullcalendar.js" 

这应该可以解决问题

更新

如果您不使用 angular-cli,请使用

<link href="node_modules/fullcalendar/dist/fullcalendar.min.css" rel="stylesheet">

在 index.html 和

'moment': 'npm:moment',
'jquery':'npm:jquery/dist/jquery.js',
 'fullcalendar':'npm:fullcalendar/dist/fullcalendar.js'

在 system.config.js 中

【讨论】:

  • 有没有解决 angular-cli.json 的方法?我正在开发一个没有 angular cli 的现有应用程序。
  • 项目目录下有Systemjs.config.js吗?
猜你喜欢
  • 1970-01-01
  • 2020-12-28
  • 2021-11-20
  • 2014-02-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-12-24
  • 1970-01-01
相关资源
最近更新 更多