Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static app props #6

Open
jirenius opened this issue Feb 6, 2024 · 0 comments
Open

Static app props #6

jirenius opened this issue Feb 6, 2024 · 0 comments
Assignees

Comments

@jirenius
Copy link
Owner

jirenius commented Feb 6, 2024

Issue

It should be possible to pass static properties from the app to modules, that cannot be configured through the query string such as the params.

This should be done with an optional parameter on the constructor:

let app = new App(moduleConfig, { props: { foo: "bar" }});
console.log(app.props); // { foo: "bar" }}
@jirenius jirenius self-assigned this Feb 6, 2024
jirenius added a commit that referenced this issue Feb 6, 2024
jirenius added a commit that referenced this issue Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant