mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
41 lines
713 B
Markdown
41 lines
713 B
Markdown
---
|
|
Added: v2.4.0
|
|
Status: Active
|
|
---
|
|
|
|
# App Config Pipe
|
|
|
|
Retrieves values from the application configuration file directly.
|
|
|
|
## Examples
|
|
|
|
```html
|
|
<adf-login
|
|
copyrightText="{{ 'application.copyright' | adfAppConfig }}">
|
|
</adf-login>
|
|
```
|
|
|
|
## Fallback values
|
|
|
|
You can use pipe parameters to pass fallback value:
|
|
|
|
```html
|
|
<adf-login
|
|
copyrightText="{{ 'application.copyright' | adfAppConfig:'Fallback Text' }}">
|
|
</adf-login>
|
|
```
|
|
|
|
## Chaining with other pipes
|
|
|
|
You can also chain values with other pipes, for example `translation` one:
|
|
|
|
```html
|
|
<adf-login
|
|
copyrightText="{{ 'application.copyright' | adfAppConfig | translate }}">
|
|
</adf-login>
|
|
```
|
|
|
|
## See also
|
|
|
|
- [App Config service](app-config.service.md)
|