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 authored and Vladislav Hadzhiyski committed Jun 15, 2020
1 parent 7f8b4e7 commit 6ea712d
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 6ea712d

Please sign in to comment.