rpx-xui-common-lib 2.0.28-presentation-img-service-banner
Install from the command line:
Learn more about npm packages
$ npm install @hmcts/rpx-xui-common-lib@2.0.28-presentation-img-service-banner
Install via package.json:
"@hmcts/rpx-xui-common-lib": "2.0.28-presentation-img-service-banner"
About this version
This library was generated with Angular CLI version 17.3.6.
Exui-common-lib is used as common library for EXUI projects
Run ng generate component component-name --project exui-common-lib
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project exui-common-lib
.
Note: Don't forget to add
--project exui-common-lib
or else it will be added to the default project in yourangular.json
file.
Run ng build exui-common-lib
to build the project. The build artifacts will be stored in the dist/
directory.
After building your library with ng build exui-common-lib
, go to the dist folder cd dist/exui-common-lib
and run npm publish
.
Run ng test exui-common-lib
to execute the unit tests via Karma.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
Import ExuiCommonLibModule into your angular project module using the forRoot method:
import { ExuiCommonLibModule } from '@hmcts/rpx-xui-common-lib';
@NgModule({
imports: [
ExuiCommonLibModule.forRoot()
],
To import ExuiCommonLibModule in lazy loaded modules, use the forChild method:
import { ExuiCommonLibModule } from '@hmcts/rpx-xui-common-lib';
@NgModule({
imports: [
ExuiCommonLibModule.forChild()
]
})
To use google analytics, inject GoogleAnalyticsService in your component, and call googleAnalyticService.init('Your google analytic key')
export class AppComponent {
constructor(private googleAnalyticsService: GoogleAnalyticsService) {
this.googleAnalyticsService.init(config.googleAnalyticsKey);
}
}
To display Terms and Conditions, import the Module as described above to get access to the following component:
<xuilib-terms-and-conditions [document]="your_tc_document"></xuilib-terms-and-conditions>
The document attribute should conform to the TCDocument interface that is exported as part of the library.
Details
- rpx-xui-common-lib
- hmcts
- 2 months ago
- MIT
- 4 dependencies
Assets
- rpx-xui-common-lib-2.0.28-presentation-img-service-banner.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0