[AAE-15836] Include email in full name pipe if required

This commit is contained in:
Pablo Martinez Garcia
2023-08-09 16:54:43 +02:00
parent 04803c1815
commit b17cefe6dc
6 changed files with 228 additions and 36 deletions
+16
View File
@@ -9,6 +9,8 @@ Last reviewed: 2018-11-12
Joins the first and last name properties from a [`UserProcessModel`](../../core/models/user-process.model.md) object into a single string.
Optionally it can include the email of the users (if available).
## Basic Usage
<!-- {% raw %} -->
@@ -21,10 +23,24 @@ Joins the first and last name properties from a [`UserProcessModel`](../../core/
<!-- {% endraw %} -->
## Include the email of the user
<!-- {% raw %} -->
```HTML
<div>
Project Leader: {{ user | fullName: true }}
</div>
```
<!-- {% endraw %} -->
## Details
The pipe offers a convenient way to extract the name from a [User process model](../models/user-process.model.md) object.
If you want to include also the email of the user (when available) by default for your whole application, then you need to provide the injection token `ADF_FULL_NAME_PIPE_INCLUDE_EMAIL` in your angular application module with `true` value.
## See also
- [User initial pipe](user-initial.pipe.md)