Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 9e7c544

Browse files
committed
Remove "Component -" from header for component view
1 parent 0178b8c commit 9e7c544

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/pages/component-viewer/component-viewer.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('ComponentViewer', () => {
4444
it('should set page title correctly', () => {
4545
const component = fixture.componentInstance;
4646
fixture.detectChanges();
47-
const expected = `Component - ${component.docItems.getItemById(docItemsID).name}`;
47+
const expected = `${component.docItems.getItemById(docItemsID).name}`;
4848
expect(component._componentPageTitle.title).toEqual(expected);
4949
});
5050
});

src/app/pages/component-viewer/component-viewer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class ComponentViewer {
1818
public docItems: DocumentationItems) {
1919
_route.params.subscribe(p => {
2020
this.componentDocItem = docItems.getItemById(p['id']);
21-
this._componentPageTitle.title = `Component - ${this.componentDocItem.name}`;
21+
this._componentPageTitle.title = `${this.componentDocItem.name}`;
2222
});
2323
}
2424
}

0 commit comments

Comments
 (0)