![](/img/trans.png)
[英]How can I disable the click button when the editor of ngx-quill is empty in angular?
[英]How can i render ngx-quill editor content from my database to a view component?
我正在开发一个使用 ngx-quill 作为文本编辑器的 angular 博客应用程序。 将记录添加到我的数据库中没有任何问题。 当我尝试呈现内容时出现问题,它没有显示数据。
这是我要在其中显示内容的详细信息发布组件 HTML:
<article class="post" *ngIf="post$ | async as post; else loading"> <div class="post-thumbnail" style="background-image: url("https://images.unsplash.com/photo-1538370965046-79c0d6907d47?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=750&q=80");" > <h1 class="post-title">{{ post.titlePost }}</h1> <div class="post-meta">February 20, 2020</div> </div> <div class="blog-post-content"> {{ post.contentPost }} </div> </article> <ng-template #loading> <div class="container-spinner"> <mat-spinner></mat-spinner> </div> </ng-template>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.