I'm currently working on an application and facing an issue with the navigation from the Component to NavbarComponent.
If you'd like to check out the application, you can visit: https://stackblitz.com/github/tsingh38/lastrada
The goal is to have a navigation bar with different links that route to specific Components. Clicking directly on the links works fine, but there are two arrow links that should navigate to the next or previous component, respectively.
I'm encountering two problems:
Problem 1: When clicking the right arrow, it navigates to the correct component, but the left arrow does not. It seems that the router link does not receive the correct value at the time the click event is triggered. The menuBarItemsInitView array contains the currently shown links in the navbar.
Problem 2: I'm having trouble fitting all the elements in the navbar in a visually appealing way. There is a lot of empty space on the right side. I've tried using col-sm-XX to divide the search bar and navigation div equally, but when clicking the right button, it splits into two rows which looks unattractive. Any suggestions on how to achieve a fixed width irrespective of the text length of the menu items?
If you'd like to see a visual representation of the issues, you can view the images here: https://i.sstatic.net/CnUFd.png and https://i.sstatic.net/KGuS5.png
Thank you!