Relative Content

Tag Archive for angularfrontend

No query params in custom translation loader in Angular

Im currently work on app where we need to use different branding and translations. For that, I need to get some information from the query params and this is working fine for getting all assets (images/icons/logos) which is done during ngOnInit() but I have problem with translations. I created custom translation loader which looks like this:

Angular does not load images from Assets

I’m making an angular application, and inside the assets I created a folder called “image”, and I placed my images there, and then I reference them in the html component, but after using ng and checking the application, the image does not appear, giving an error not found in the console, the server does not recognize the image page created within assets