Этот пример является устаревшим, посмотрите множество других обновлённых примеров в данной категории.Dashboards.JS provides ready-made framework components, so a dashboard is shown by placing the viewer element and giving it a dashboard object.

Viewer setup. Configure the viewer, load the dashboard, assign it to the component, and process the requests or events raised by the UI.
import { Component } from '@angular/core';
import { Viewer, Stimulsoft } from 'stimulsoft-dashboards-js-angular/viewer';

@Component({
    selector: 'app-root',
    imports: [Viewer],
    template: `<sti-viewer [report]="report"></sti-viewer>`
})
export class AppComponent {
    report: Stimulsoft.Report.StiReport;
    constructor() {
        this.report = Stimulsoft.Report.StiReport.createNewDashboard();
        report.loadFile('Dashboards/Christmas.mrt');
    }
}

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