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

Support @page Directive #4

Closed
FlorianRappl opened this issue Sep 22, 2020 · 1 comment
Closed

Support @page Directive #4

FlorianRappl opened this issue Sep 22, 2020 · 1 comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@FlorianRappl
Copy link
Collaborator

The @page directive is used to automatically add pages to the router. Internally, this just adds the [PageAttribute] to the generated class.

Most likely, we could do some "magic" and introduce an auto inclusion of these pages. Potentially, it makes sense to trigger this via piral-blazor (explicitly), such that it could be turned off - if not desired.

export function setup(api) {
  api.defineBlazorReferences([...], {
    includePages: true, //set to false or omit to not auto discover
  });
}
@FlorianRappl FlorianRappl added documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed labels Sep 22, 2020
@FlorianRappl FlorianRappl added this to the 3.2.1 milestone Sep 22, 2020
DanteDeRuwe added a commit to DanteDeRuwe/Piral.Blazor that referenced this issue Apr 7, 2021
using LoadComponentFromLibrary args ( i.e. { includePages: true }). 
Related to smapiot#4
@FlorianRappl
Copy link
Collaborator Author

This was brought in by @DanteDeRuwe! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant