Uweheuerfrontend: Difference between revisions
| Line 9: | Line 9: | ||
===Sidenav=== | ===Sidenav=== | ||
* for communication with the side area and content there is a dedicated service in <code>sidenav.service.ts</code>: | * for communication with the side area and content there is a dedicated service in <code>sidenav.service.ts</code>: | ||
** offers a toggle method for the side area | ** offers a toggle method for the side area which is called in the header | ||
* definition in <code>app.component.html</code> | * definition in <code>app.component.html</code> | ||
* in corresponding ts code: | * in corresponding ts code: | ||
** set the DOM object '#mysidenav' side area in the sidenav service | ** set the DOM object '#mysidenav' side area in the sidenav service | ||
Revision as of 10:42, 3 November 2022
Application State
/services/application-state.ts- manages the application state as BehaviorSubject, a sub-type of Observable and expose the state as Observable
/services/application-state.service.ts- in ctor:
- subscribe to Angular SWUpdate service
- setup regular SW version check
- in ctor:
- for communication with the side area and content there is a dedicated service in
sidenav.service.ts:- offers a toggle method for the side area which is called in the header
- definition in
app.component.html - in corresponding ts code:
- set the DOM object '#mysidenav' side area in the sidenav service