Modern Angular applications can be built from standalone components that declare their own dependencies, without a central NgModule.

Importing directly in the component. Instead of registering StimulsoftViewerModule in a module, list it in the component's own imports array:
import { Component } from '@angular/core';
import { StimulsoftViewerModule } from 'stimulsoft-viewer-angular';

@Component({
    selector: 'app-root',
    imports: [StimulsoftViewerModule],
    templateUrl: './app.component.html',
    styleUrl: './app.component.css'
})
export class AppComponent {
    title = 'viewer';
}

Using the component in the template. The viewer itself is used exactly as in a module-based application:
<stimulsoft-viewer-angular
    [requestUrl]="'/Viewer/{action}'"
    [action]="'InitViewer'"
    [height]="'100vh'">
</stimulsoft-viewer-angular>

The server side is identical to the basic integration — a controller with the InitViewer, GetReport and ViewerEvent actions supplies the options and the report.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.