I have the following code in a template from an Angular 4 app using ngx-translate
<a [routerLink]="['birthdays']" [title]="'birthdays.title' | translate">
{{ 'birthdays.title' | translate }}
</a>
this works perfect. But I have to duplicate the code that retrieves the translate for 'birthdays.title'. Is there a way to, in the template, set it to a variable and use this variable?
Something like (pseudo code):
<a [routerLink]="['birthdays']" [title]="'birthdays.title' | translate as title">
{{ title }}
</a>