I am trying jhipster 6 with a demo app using the defaults. Just tried to remove the element <jhi-page-ribbon></jhi-page-ribbon> from 'src/main/webapp/app/layouts/main/main.component.html'. This removes the page-ribbon from the UI, but the navigation breaks as the accountService is not injected to the loginService. I understand that we can remove the ribbon by configuring the spring profiles. But I don't understand why removing the ribbon component from UI, breaks the accountService injection in to the loginService. Can anyone explain?
Looking at the debug console on chrome/firefox, I see accountService is undefined in loginService when I remove the jhi-page-ribbon. if I put it back, it is injected properly and works fine.
Steps:
install jhipster 6. under a new demo folder, run jhipster choosing defaults.
run ./mvnw from one terminal and run npm start from another terminal
from the source file 'src/main/webapp/app/layouts/main/main.component.html', remove the component <jhi-page-ribbon></jhi-page-ribbon>. Now try to login as user or admin. It will allow to login, but the navigation breaks.
Expected:
Removing the <jhi-page-ribbon></jhi-page-ribbon> should not break injection of the accountService into the loginService and should not break the navigation.