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

location routing without refreshing the whole page #31

Open
billywatsy opened this issue Apr 6, 2022 · 6 comments
Open

location routing without refreshing the whole page #31

billywatsy opened this issue Apr 6, 2022 · 6 comments

Comments

@billywatsy
Copy link

the plugin redirect using href but this is a SPA need for routelink

@billywatsy
Copy link
Author

billywatsy commented Apr 28, 2022

hi
any feedback on this issue

@billywatsy
Copy link
Author

hi any feedback!

@isahohieku
Copy link
Owner

Hi @billywatsy, Sorry for the late feedback. Have been really busy lately.

For SPA, I would have to add a router-outlet which would conflict with your outlet. So I would add a feature to handle on click so you can route programmatically if that's what you would like to do.

Would let you know how to use it once I publish the update.

Thanks

@isahohieku
Copy link
Owner

Hi @billywatsy

To programatically route, you can then add the

<ngx-horizontal-menu-scroll [items]="items" (onLinkClicked)="handleClickedRoute($event)"></ngx-horizontal-menu-scroll>

Please note that your item array objects should not have the property you assigned to linkLabel.

Also what this means is that you can combine links you want to programmatically handle with those you don't necessarily want to.

@billywatsy
Copy link
Author

hi @isahohieku

thanks for getting back to me , will try the way you advised

@isahohieku
Copy link
Owner

Hi @billywatsy. How did it go for you? Just checking back.

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