Skip to content

Commit 2d140a3

Browse files
committed
docs(ui): describe both guessed source states and the no-selector fallback
The Components page now says that every class with the name is kept when none has the host tag as its selector, and the FAQ names both Likely and Not certain.
1 parent 655875e commit 2d140a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/docs/src/content/inspectors/components.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The tree shows up to 2000 component instances, and walks up to 256 levels of DOM
6464

6565
### Detail header
6666

67-
The header of the selected instance shows the class name, the host tag, and the source file and line. In a development build, the file and line come from the debug info Angular's compiler attaches to the component, so they point at the exact class. Without it, they come from the source scan, matched by class name, and the header marks them **Likely**. If several scanned classes share the name, the scan keeps those whose selector is the host tag. If more than one is left, the header lists them all under **Not certain**, and **Open source** opens the compiled class. The file and line are missing when neither source has them. With a live devtools server, the file and line are a button that opens the file in your editor. See [Open a file in your editor](#open-a-file-in-your-editor).
67+
The header of the selected instance shows the class name, the host tag, and the source file and line. In a development build, the file and line come from the debug info Angular's compiler attaches to the component, so they point at the exact class. Without it, they come from the source scan, matched by class name. When some of those classes have the host tag as their selector, only those are kept; otherwise every class with the name is kept. One match left is marked **Likely**. Several are listed under **Not certain**, and **Open source** then opens the compiled class. The file and line are missing when neither source has them. With a live devtools server, the file and line are a button that opens the file in your editor. See [Open a file in your editor](#open-a-file-in-your-editor).
6868

6969
In the [Chrome extension](../getting-started/chrome-extension.md), the header also has two buttons:
7070

@@ -531,7 +531,7 @@ Instance ids change on every page load. Don't store them between sessions.
531531
No page is connected, or the connected page is a production build. Open the app in a development build with the overlay loaded.
532532
</ngmd-accordion-item>
533533
<ngmd-accordion-item title="Why are the file and line missing?">
534-
Production builds drop Angular's debug info. The detail header then matches the class name against the source scan and marks the match <strong>Likely</strong>. Classes outside the scanned folders, or from libraries, have no match.
534+
Production builds drop Angular's debug info. The detail header then matches the class name against the source scan, keeping only classes whose selector is the host tag when there are any. One match is marked <strong>Likely</strong>; several are listed under <strong>Not certain</strong>. Classes outside the scanned folders, or from libraries, have no match, so no file shows.
535535
</ngmd-accordion-item>
536536
<ngmd-accordion-item title="Why does a component show +2?">
537537
Two directives sit on its host element. Select it to see one block per directive.

0 commit comments

Comments
 (0)