* feat: migrated the navigation metadata from inline MD title decorations to frontmatter * fix: fixed frontmatter metadate for api-table MDs * fix: fixed frontmatter eslint issue
31 lines
743 B
Markdown
31 lines
743 B
Markdown
---
|
|
parts:
|
|
- Example Success
|
|
- Singleton Manager
|
|
- Tools
|
|
title: 'Singleton Manager: Example Success'
|
|
eleventyNavigation:
|
|
key: Tools >> Singleton Manager >> Example Success
|
|
title: Example Success
|
|
order: 30
|
|
parent: Tools >> Singleton Manager
|
|
---
|
|
|
|
# Tools >> Singleton Manager >> Example Success ||30
|
|
|
|
In this SPA (Single Page Application) demo you will be able to reproduce the solution.
|
|
|
|
1. Click on Page A
|
|
2. Click on `block`
|
|
3. Click on Page B
|
|
4. Click on `unblock` => state is unblocked globally as there is only a single instance
|
|
|
|
With this solutions users can not break the app anymore.
|
|
|
|
<demo-app>Loading App...</demo-app>
|
|
|
|
<div id="overlay-target" style="margin-top: 50px;"></div>
|
|
|
|
```js script
|
|
import './demo-app.js';
|
|
```
|