@mayd/app
v1.2.0
Published
Mayd Application Singleton ==========================
Maintainers
Keywords
Readme
Mayd Application Singleton
This package defines the singleton central Mayd application instance, as well as the Bundle infrastructure.
The package is supposed be used in the (Mayd) backend, as well as the frontend.
Usage
Anywhere in your app you can just require the instance and work with it.
import app from "@mayd/app";
app.get<Router>("router").doSth();Data
The data is loaded from the container called _mayd-data.
<script id="_mayd-data" type="application/json">{"some":"data"}</script>You should include this <script> container directly before the other <script> tags that load the main JavaScript.
