Skip to main content
Version: 11.14.0

SelectArticle

The SelectArticleDirective selects an article when the host element is clicked, using a configurable selection strategy. It supersedes the deprecated SelectArticleOnClickDirective.

Usage

<div [article]="myArticle" [strategy]="'stack'" selectArticle></div>

API Reference

Inputs

NameTypeRequiredDescription
articleArticleThe article to select on click.
strategySelectionStrategyHow to handle the selection. Default: 'replace'.
redirectUrlstringThe URL to navigate to when strategy is 'redirect'. Default: '/preview'.

Outputs

NameTypeDescription
selectedEventEmitter<Article>Emitted when the article is selected (strategy 'emit').