Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

White label for angular 2 project

I have an Angular 2 application and I need to create a white label project based on the that. In the white label I need to alter some of the components css and also add new routes / new components. What is the recommended way to approach this?

like image 296
Roberto Dinca Avatar asked Jul 18 '17 14:07

Roberto Dinca


People also ask

What is White Labeling in angular?

Angular App The new White label App is made for “abc” company, it has its own abc-landing module with a AbcHome component. To identify the original App vs White label App, a new environment file is added with a new “orgId” attribute.

What is white label?

“White label” refers to a fully supported product or service that's made by one company but sold by another. White label products and services are purchased by the latter company without branding.


1 Answers

I would

  • create an Angular library (see https://medium.com/@tomsu/how-to-build-a-library-for-angular-apps-4f9b38b0ed11),
  • define the style parts that can be overwritten by a white-labelled consumer in a global stylesheet in the library (as opposed to in each and every individual component),
  • overwrite these parts in the white-labelled consumer applications,
  • export all relevant components (and a Routing Module) from the library,
  • import the routes and the components to the consumers, and add additional specific routes/components on top of that.
like image 169
fjc Avatar answered Oct 09 '22 01:10

fjc