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

HttpLoaderFactory Function run advance APP_INITIALIZE #144

Open
tranthien87 opened this issue Apr 19, 2023 · 1 comment
Open

HttpLoaderFactory Function run advance APP_INITIALIZE #144

tranthien87 opened this issue Apr 19, 2023 · 1 comment

Comments

@tranthien87
Copy link

tranthien87 commented Apr 19, 2023

Hi everyone!
I have 2 issues when integrating ngx-translate-router in my Angular App.

The first issue when running HttpLoaderFactory is to get a list of languages to replace the locales.json file. The HttpLoaderFactory function always runs in advance APP_INITIALIZE - get the config file, how to run order follow?

The second one: how to use router link replace to /<a href="#id>

Thank you for helping in advance!

@giacomo
Copy link
Contributor

giacomo commented May 9, 2023

For localized urls you should use <a [routerLink]="['/some', 'path'] | localize">Test</a>

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