Skip to content

Commit

Permalink
disable stackblitz demos
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed May 2, 2024
1 parent 8fb1f29 commit 3365c74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/showcase/layout/doc/app.code.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class AppCodeComponent {

@Input({ transform: booleanAttribute }) hideCodeSandbox: boolean = false;

@Input({ transform: booleanAttribute }) hideStackBlitz: boolean = false;
@Input({ transform: booleanAttribute }) hideStackBlitz: boolean = true;

@ViewChild('codeElement') codeElement: ElementRef;

Expand Down Expand Up @@ -158,7 +158,7 @@ export class AppCodeComponent {

if (!str.includes(importModuleStatement)) {
let modifiedCodeWithImportsModule = str.replace(/import\s+{[^{}]*}\s+from\s+'[^']+';[\r\n]*/g, (match) => {
if (match.includes('Module') && !match.includes("ReactiveFormsModule")) {
if (match.includes('Module') && !match.includes('ReactiveFormsModule')) {
return '';
}
return match;
Expand Down

0 comments on commit 3365c74

Please sign in to comment.