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

questions about front end #75

Closed
dlaflamme opened this issue Aug 21, 2021 · 3 comments
Closed

questions about front end #75

dlaflamme opened this issue Aug 21, 2021 · 3 comments

Comments

@dlaflamme
Copy link

I have 2 questions:

  1. Why is pointsListModification only broadcast from the PointsDeleteDialog component? Should it be broadcast elsewhere too? (for example in create() in PointsService)?

  2. I am trying to understand how the content in home.component.html is shown when the application is accessed initially. I don't see a route for it in app-routing.module.ts and I don't see a jhi-home tag in any of the html templates. How does this work?

@dlaflamme
Copy link
Author

Answering question 2:

app.module.ts imports HomeModule from ./home/home.module.ts and then includes HomeModule in AppModule's imports. HomeModule's import list, in turn, includes RouterModule.forChild([HOME_ROUTE]) and HOME_ROUTE matches path: ''

One potential point of confusion is that while other modules do have routes that match path: '', they are all child routes. the HOME_ROUTE is the only on in the app that matches path: '' from the root.

@mraible
Copy link
Owner

mraible commented Sep 13, 2021

Hello @dlaflamme,

I'm sorry for taking so long to respond, my life was kinda hectic in the last month. I'm not sure of the answer to your first question as I wrote this code quite a while ago. I did just test things and if you create a new points entity, it displays a message at the top, so the notification system seems to be working and my guess is it's simply not needed.

@mraible
Copy link
Owner

mraible commented Mar 12, 2022

Closing due to lack of response. @dlaflamme If you still have questions, please reopen.

@mraible mraible closed this as completed Mar 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants