fix(docs): async md load

This commit is contained in:
evtkhvch 2021-09-24 15:56:10 +03:00
parent e77829a465
commit 0026c02fdf
7 changed files with 73 additions and 33 deletions

View file

@ -11,7 +11,7 @@
<ng-container *ngFor="let block of currentItem?.children">
<ng-container [ngSwitch]="block.block">
<ngx-md-block *ngSwitchCase="'markdown'" [source]="block.children"></ngx-md-block>
<ngx-md-block *ngSwitchCase="'markdown'" [content]="block.sections | async"></ngx-md-block>
<ngx-component-block *ngSwitchCase="'component'" [source]="block.source"></ngx-component-block>
<ngx-tabbed-block *ngSwitchCase="'tabbed'" [source]="block.children" [tabs]="currentItem.tabs"></ngx-tabbed-block>
<ngx-theme-block *ngSwitchCase="'theme'" [block]="block"></ngx-theme-block>