ngx-gem-spaas
TypeScript icon, indicating that this package has built-in type declarations

16.1.0 • Public • Published

GEM SPaaS library

This library contains services, components, images and styles to provide a unified look and way-of-working throughout GEM SPaaS.

Installation

Run npm i ngx-gem-spaas to install the library in your project.

As is generally the case, the necessary peer dependencies will be automatically installed together with the library.

However, when you import submodules like ngx-gem-spaas/charts, you will receive errors about missing dependencies.

Please read the error messages and simply install the missing dependencies.

Usage

In your app.module.ts, import the BrowserAnimationsModule (Angular Material requires it) and the SpaasModule and call its forRoot method, providing an SpaasConfig object:

@NgModule({
  declarations: [
    ...,
  ],
  imports: [
    BrowserAnimationsModule,
    SpaasModule.forRoot({
      appName: 'your-app-name',
      environment: environment.env,
      oktaConfig: environment.oktaConfig,
    }),
    ...,
  ],
  bootstrap: [AppComponent]
})
export class AppModule {}

To have access to the images, logo's and fonts included in this library, add following code to the assets in your angular.json:

"assets": [
  ...,
  {
    "glob": "**/*",
    "input": "node_modules/ngx-gem-spaas/assets",
    "output": "assets"
  }
],

To activate the GEM SPaaS theme for your application, add following line to the styles in your angular.json:

"styles": [
    ...,
    "node_modules/ngx-gem-spaas/styles/main.scss",
],

Source-code on GEM-NG

Package Sidebar

Install

npm i ngx-gem-spaas

Weekly Downloads

932

Version

16.1.0

License

none

Unpacked Size

4.74 MB

Total Files

223

Last publish

Collaborators

  • k.deridder