Skip to content

Commit 27309fd

Browse files
authored
Fix bootstrapApplication to use the main-component (angular#32391)
There seems to be an trailing comma here that doesn't exist in the template and causes this replacement to be a no-op.
1 parent 1d42431 commit 27309fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/app/shared/stackblitz/stackblitz-writer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ export class StackBlitzWriter {
215215
// Replace `bootstrapApplication(MaterialDocsExample,`
216216
// will be replaced as `bootstrapApplication(ButtonDemo,`
217217
fileContent = fileContent.replace(
218-
/bootstrapApplication\(MaterialDocsExample,/g,
219-
`bootstrapApplication(${mainComponentName},`,
218+
/bootstrapApplication\(MaterialDocsExample/g,
219+
`bootstrapApplication(${mainComponentName}`,
220220
);
221221

222222
const dotIndex = data.indexFilename.lastIndexOf('.');

0 commit comments

Comments
 (0)