-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
в polifills.ts пути прописаны, в самом файле cryptopro.ts пути не меняла
Файлы имеются и лежат вроде в той же иерархии

Мой компонент:
import { Component, OnInit } from '@angular/core';
import {CryptoProPlugin} from "cryptopro-browser-plugin";
interface CertList {
value: string;
text: string;
}
@Component({
selector: 'app-activity-monitor',
templateUrl: './activity-monitor.component.html',
styleUrls: ['./activity-monitor.component.css']
})
export class ActivityMonitorComponent implements OnInit {
constructor() { }
private crypto;
ngOnInit() {
const crypto = this.crypto = new CryptoProPlugin();
crypto.then(() => {
crypto.getCertList().then((certList: CertList) => {
console.log(certList);
}, (error) => console.error(error));
}, (error) => console.error(error));
}
}
Metadata
Metadata
Assignees
Labels
No labels
