mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2973] Angular pipe to get application configuration settings (#3301)
* app config pipe * update docs
This commit is contained in:
committed by
Eugenio Romano
parent
7afcd24488
commit
b66154773a
40
docs/core/app-config.pipe.md
Normal file
40
docs/core/app-config.pipe.md
Normal file
@@ -0,0 +1,40 @@
|
||||
---
|
||||
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)
|
Reference in New Issue
Block a user