angular2 fullcalendar不工作

angular2 fullcalendar不工作,angular,fullcalendar,angular2-template,angular2-services,angular2-directives,Angular,Fullcalendar,Angular2 Template,Angular2 Services,Angular2 Directives,您好,我在angular2项目中使用fullcalendar。但我无法正确显示日历本身。控制台中没有显示错误,但日历和事件不会显示。这就是它目前正在显示的内容 这是我的代码。如果我需要附加任何文件,请告诉我 angular.cli.json { “$schema”:“/node_modules/@angular/cli/lib/config/schema.json”, “项目”:{ “名称”:“日历” }, “应用程序”:[ { “根”:“src”, “outDir”:“dist”, “资产

您好,我在angular2项目中使用fullcalendar。但我无法正确显示日历本身。控制台中没有显示错误,但日历和事件不会显示。这就是它目前正在显示的内容

这是我的代码。如果我需要附加任何文件,请告诉我

angular.cli.json

{
“$schema”:“/node_modules/@angular/cli/lib/config/schema.json”,
“项目”:{
“名称”:“日历”
},
“应用程序”:[
{
“根”:“src”,
“outDir”:“dist”,
“资产”:[
“资产”,
“favicon.ico”
],
“index”:“index.html”,
“main”:“main.ts”,
“polyfills”:“polyfills.ts”,
“test”:“test.ts”,
“tsconfig”:“tsconfig.app.json”,
“testTsconfig”:“tsconfig.spec.json”,
“前缀”:“应用程序”,
“风格”:[
“styles.css”,
“./node_modules/fullcalendar/dist/fullcalendar.min.css”
],
“脚本”:[
“./node_modules/jquery/jquery.js”,
“./node_modules/ap-angular2-fullcalendar/angular2-fullcalendar.js”,
“./node_modules/moment/moment.js”
],
“environmentSource”:“environments/environment.ts”,
“环境”:{
“dev”:“environments/environment.ts”,
“prod”:“environments/environment.prod.ts”
}
}
],
“e2e”:{
“量角器”:{
“config”:“/dragrator.conf.js”
}
},
“皮棉”:[
{
“项目”:“src/tsconfig.app.json”
},
{
“项目”:“src/tsconfig.spec.json”
},
{
“项目”:“e2e/tsconfig.e2e.json”
}
],
“测试”:{
“因果报应”:{
“config”:“/karma.conf.js”
}
},
“默认值”:{
“STYLEXT”:“css”,
“组件”:{}
}

}
通过删除线路解决了问题

高度:'parent'


从组件。像一个魔咒一样工作

我也有同样的问题,现在对我来说它工作了,请参考以下信息

您需要将您的
style.css
添加到

导入完整日历css

如果您使用的是Angular CLI,只需在
样式中包含一行即可。(scss | css)
文件:

@import“fullcalendar/fullcalendar.min.css”
如果这不起作用,您可以尝试导入fullcalendar

npm安装--保存完整日历
包括:

@import./node\u modules/fullcalendar/dist/fullcalendar.min.css”