Skip to content
@ng-doc/app / Class

NgDocPageLinkComponent

A link in the page content. Links inside the application navigate with the router; other links open in a new tab and, outside code, show an external-link icon.

Decorators
@Component
Selectors
ng-doc-page-link
Implements
OnInit
DeclarationTypeScript
@Component({ … })
export class NgDocPageLinkComponent implements OnInit { … }

Members

Properties

9
classes: InputSignal<string>
readonly input()

Classes of the link element.

fragment: Signal<string | undefined>
readonly

The fragment of the link, without #.

href: InputSignal<string>
readonly input()

The link target, as written in the content. It is optional so that a render before the page processor sets it (auto-detected change detection) does not fail.

isInCode: WritableSignal<boolean>
protectedreadonly

Whether the link sits inside a code element.

path: Signal<string>
readonly

The path of an application link, or the href of any other link.

queryParams: Signal<Params>
readonly

The query parameters of the link.

Methods

1
(): void
implements OnInit
—
Symbol
Kind
Class
Decorators
@Component
Selectors
ng-doc-page-link
Implements
OnInit
Scope
@ng-doc/app
Edit this page