我试图在我的NG2智能表中使用一个自定义渲染组件,但是我得到了以下错误。
No component factory found for undefined. Did you add it to @NgModule.entryComponents?
at…, …}
奇怪的是,组件表示它的未定义。
我的部件看起来像这样。
import { Component, OnInit, Input } from '@angular/core';
import { ChannelTableModeService } from '../../../../../../service
在执行AOT时,我面临NG2-烤面包的问题,我正在使用NG2-烤面包
ToastsManager' is not exported by 'node_modules\ng2-toastr\src\toast-manager.js
'ToastModule' is not exported by 'node_modules\ng2-toastr\src\toast.module.js'.
'ToastOptions' is not exported by 'node_modules\ng2-toastr\src\
我们使用自定义字段将数据发送到所需的php模板页面。无论如何,一切都运行得很好。我们使用旋转滑块作为滑块,并将滑块别名显示为自定义字段中的选项,以便在编辑帖子、事件、页面等时选择。
然后,他们选择的滑块被发送到标题,我们在那里加载旋转滑块短码。这是一个非常简单的机制。
但是,slider short code自定义字段将从除事件类别之外的所有页面、帖子中发送其值。这是一个自定义的分类法。
在主题的header.php中,我有一个变量,它使用以下函数获取自定义字段的选择值:
get_post_meta( get_the_ID(), 'mycustomfield', tru