简体   繁体   中英

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.

我不知道您是否听说过environnement variables但在您的情况下使用它们可能会很棒,具体取决于您提供给ng serve示例的选项: ng serve --client1您可以自动更改您定义的变量,这里是它的外观: https : //www.jvandemo.com/how-to-use-environment-variables-to-configure-your-angular-application-without-a-rebuild/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM