/home/workflows/workspace/libs/design-system/content-templates/markdown/src/lib/markdown.component.ts
Markdown wrapper component to load markdown from a source file.
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | hra-markdown |
| imports |
CommonModule
NgxMarkdownComponent
AssetUrlPipe
|
| templateUrl | ./markdown.component.html |
| styleUrl | ./markdown.component.scss |
Methods |
Inputs |
constructor()
|
|
Attach cleanup on component destruction |
| data | |
Type : string
|
|
|
Markdown data input |
|
| src | |
Type : string
|
|
|
Markdown source file input |
|
| attachEventListeners |
attachEventListeners()
|
|
Attach event listeners to rendered markdown content
Returns :
void
|
| clearEventListeners |
clearEventListeners()
|
|
Clear all active event listeners from the markdown
Returns :
void
|