Skip to content

Commit

Permalink
chore: add curly braces around export name.
Browse files Browse the repository at this point in the history
  • Loading branch information
hadzhiyski committed May 16, 2021
1 parent d4ed095 commit 061f60a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { CopierService } from '../../copier/copier.service';
import { DocViewerModule } from '../../doc-viewer/doc-viewer-module';
import { DocsApiModuleImport } from './docs-api-module-import';

const exportName = '{MatButton}';
const exportName = 'MatButton';
const moduleImportPath = `@angular/material/button`;

describe('DocsApiModuleImport', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { CopierService } from '../../copier/copier.service';

const EXPORT_NAME_PLACEHOLDER = '{{exportName}}';
const MODULE_IMPORT_PATH_PLACEHOLDER = '{{moduleImportPath}}';
const MODULE_IMPORT_TEMPLATE = `import ${EXPORT_NAME_PLACEHOLDER} from '${MODULE_IMPORT_PATH_PLACEHOLDER}';`;
const MODULE_IMPORT_TEMPLATE = `import {${EXPORT_NAME_PLACEHOLDER}} from '${MODULE_IMPORT_PATH_PLACEHOLDER}';`;

@Component({
selector: '[docs-api-module-import]',
Expand Down

0 comments on commit 061f60a

Please sign in to comment.