![](/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.