@pl4yzonellc/valar-ui
v1.0.4
Published
Angular component library for the Valar Configuration Service.
Readme
Valar UI
Angular component library for the Valar Configuration Service.
Code scaffolding
Run ng generate component component-name --project valar-ui to generate a new component. You can also
use ng generate directive|pipe|service|class|guard|interface|enum|module --project valar-ui.
Note: Don't forget to add
--project valar-uior else it will be added to the default project in yourangular.jsonfile.
Build
Run ng build valar-ui to build the project. The build artifacts will be stored in the dist/ directory.
Publishing
After building your library with ng build valar-ui, go to the dist folder
cd dist/valar-ui and run npm publish.
Running unit tests
Run ng test valar-ui to execute the unit tests via Karma.
Feature Flags Tenant Flow
FeatureFlagsModule.forRoot(...) configures API host/version and root tenant header only.
FeatureFlagsModule.forRoot({
apiBaseUrl: 'https://api.example.com',
apiVersion: 'v1',
rootTenantId: environment.tenantId,
});Runtime tenant selection is provided by the consuming app via component Input/Output:
<valar-feature-flags-manager [(tenantId)]="selectedTenantId"></valar-feature-flags-manager>tenantIdinput is used for API paths like/v1/feature-flags/tenant_<tenantId>.tenantIdis also included in PUT payload astenant_<tenantId>.rootTenantIdfromforRootis sent as thex-tenant-idheader.
Further help
To get more help on the Angular CLI use ng help or go check out
the Angular CLI Overview and Command Reference page.
