Angular Directives

Attribute directives

An Attribute directive changes the appearance or behavior of a DOM element.

Here queryParams is an input which is being set in the fooParam$ observable, this would be useful to carry params from one page to another.

1
2
3
4
5
6
<a
class="some-bem__class"
routerLink="{{ link.url }}"
[queryParams]="(fooParam$ | async )">
{{ link.title }}
</a>