Angular reporter for stimulsoftJS
npm install ngx-stimulsoft



> Angular integration for Stimulsoft Reports viewer and designer components.
---
Install the package via npm:
``bash`
npm install ngx-stimulsoft --save
---
To use ngx-stimulsoft in your Angular application, provide the Stimulsoft configuration in the root NgModule:
`ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { provideStimulsoft, IStimulsoftConfig } from 'ngx-stimulsoft';
const stimulsoftConfig: Partial
baseUrl: '/content/reports/',
viewerJsUrl: '/content/stimulsoft/stimulsoft.viewer.js',
reportsJsUrl: '/content/stimulsoft/stimulsoft.reports.js',
designerJsUrl: '/content/stimulsoft/stimulsoft.designer.js',
designerCssUrl: '/content/stimulsoft/stimulsoft.designer.office2013.darkgrayblue.css',
viewerCssUrl: '/content/stimulsoft/stimulsoft.viewer.office2013.darkgrayblue.css',
licenseKey: '{{licenseKey}}', // Replace with your license key
};
@NgModule({
imports: [BrowserModule],
declarations: [AppComponent],
bootstrap: [AppComponent],
providers: [provideStimulsoft(stimulsoftConfig)],
})
export class AppModule {}
`
If you're using a SharedModule across multiple feature modules, you can export the NgxStimulsoftModule to avoid importing it repeatedly:
`ts
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgxStimulsoftModule } from 'ngx-stimulsoft';
@NgModule({
imports: [CommonModule],
exports: [CommonModule, NgxStimulsoftModule],
})
export class SharedModule {}
``
---
This project is licensed under the MIT License.
---