更新时间:2023-12-05 08:13:22
我最终没有以html格式保存组件,而是加载了html.该组件具有存储html字符串的template属性.这样,我就可以在数据库中存储和加载组件,并且可以正常工作.
Instead of loading html I end up saving component in JSON format. This component has a template property that stores the html string. In this way I am able to store and load component to and from database and it works without any issue.