diff --git a/scripts/site/_site/doc/app/share/codebox/codebox.component.html b/scripts/site/_site/doc/app/share/codebox/codebox.component.html index a393cd6bf2..c42d8a6b75 100644 --- a/scripts/site/_site/doc/app/share/codebox/codebox.component.html +++ b/scripts/site/_site/doc/app/share/codebox/codebox.component.html @@ -15,11 +15,9 @@
- {{ nzTitle }} - - - + {{ nzTitle }} + +
@@ -118,4 +116,4 @@
- \ No newline at end of file + diff --git a/scripts/site/_site/doc/app/share/codebox/codebox.component.ts b/scripts/site/_site/doc/app/share/codebox/codebox.component.ts index 6f3d7502cd..4f13923a7d 100644 --- a/scripts/site/_site/doc/app/share/codebox/codebox.component.ts +++ b/scripts/site/_site/doc/app/share/codebox/codebox.component.ts @@ -22,7 +22,10 @@ import { OnlineIdeService } from '../../online-ide/online-ide.service'; encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, templateUrl: './codebox.component.html', - styleUrls: ['./codebox.component.less'] + styleUrls: ['./codebox.component.less'], + host: { + ngSkipHydration: '' + } }) export class NzCodeBoxComponent implements OnInit, OnDestroy { highlightCode?: string; @@ -146,7 +149,7 @@ export class NzCodeBoxComponent implements OnInit, OnDestroy { private appService: AppService, private platform: Platform, private onlineIdeService: OnlineIdeService - ) {} + ) { } ngOnInit(): void { this.appService.theme$.pipe(takeUntil(this.destroy$)).subscribe(data => {