All Versions
- DSpace 7.x (Current Release)
- DSpace 8.x (Unreleased)
- DSpace 6.x (EOL)
- DSpace 5.x (EOL)
- More Versions...
...
Code Block | ||||
---|---|---|---|---|
| ||||
<!-- This example shows the theme named "dspace" was used for the "themed-header-navbar-wrapper.component.ts" --> <ds-themed-header-navbar-wrapper ... data-used-theme="dspace"></ds-themed-header-navabar-wrapper> <main> <!-- But, on the same page, the theme named "base" (core code) was used for the "themed-breadcrumbs.component.ts" --> <ds-themed-breadcrumbs ... data-used-theme="base"></ds-themed-breadcrumbs> </main> |
Every DSpace Angular component has a corresponding "<ds-*>" HTML-like tag. The HTML tag is called the "selector" (or CSS selector), and it is defined in the "*.component.ts" tag using the "@Component" decorator (see Angular's Component Overview for the basics). The key point to remember is that if you can find the "<ds-* >" tag, then it is easy to determine which component generated that tag!
So, supposing you are trying to determine which component is generating part of a DSpace page.
Continuing the example, if you view the source of the "Communities in DSpace" heading, you'll see something like this (all HTML attributes have been removed to make the example simplier):
Code Block |
---|
<ds-top-level-community-list>
<div>
<h2> Communities in DSpace </h2>
<p>Select a community to browse its collections.</p>
</div>
</ds-top-level-community-list> |
Continuing the example, if you search the ./src/app/ directories for "ds-top-level-community-list" you'll find a match in the "src/app/home-page/top-level-community-list/top-level-community-list.component.ts" file:
Code Block |
---|
@Component({
selector: 'ds-top-level-community-list',
...
}) |
...