Skip to content
Snippets Groups Projects
Unverified Commit 48572b94 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Add more structure

parent fc382f0b
No related branches found
No related tags found
No related merge requests found
Pipeline #17839 failed
......@@ -45,7 +45,7 @@ All other components are also inherent providers (see below), so you don't reall
of other components. The use of `dbp-provider` is mainly suggested being used for namespacing (e.g. different languages
or entry point urls on the same page) or to deliver attribute changes across different components.
### Flow
### Examples
#### Example 1 - Simple communication
......@@ -73,6 +73,8 @@ sequenceDiagram
P->>PS: "lang" was updated to "en"
```
##### Flow
1) The language selector propagates a change of `lang` (because the user clicked on it)
2) The provider receives that event, because it has the attribute `lang` set
3) The provider executes a callback with the updated value for `lang` in all components that subscribed `lang`
......@@ -113,6 +115,8 @@ sequenceDiagram
P1->>PS: "auth" was updated to "{...json...}"
```
##### Flow
1) The language selector propagates a change of `lang` (because the user clicked on it)
2) The provider 2 receives that event, because it has the attribute `lang` set
3) The provider 2 executes a callback with the updated value for `lang` in all components that subscribed `lang`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment