Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 8 - Apply multi-tenant

I am working in a project for multiple clients. I am using angular themes for change the background color, font, etc for the different clients and I have to reuse the components changing the different text of each section depending on the client(I get the client from the server). Is there any easy way to do that?

At the same time I have to translate the text to different languages so any help of both things will be appreciate.

like image 656
beanic Avatar asked May 16 '26 18:05

beanic


1 Answers

I don't know if you heard of environnement variables but it might be great to use them in your case, depending on the options you'll give to ng serve example : ng serve --client1 you can automaticly change variables you defined, here's how it looks : https://www.jvandemo.com/how-to-use-environment-variables-to-configure-your-angular-application-without-a-rebuild/

like image 87
Zephyr Avatar answered May 19 '26 12:05

Zephyr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!