Search found 2 matches

by angular
Sat Jun 29, 2019 7:00 pm
Forum: Angular
Topic: How to import Metro variable in Angular 8
Replies: 1
Views: 247

Re: How to import Metro variable in Angular 8

You can use // @ts-ignore, then the compiler will not generate an error.
Example
// @ts-ignore
Metro.dialog.open('#demoDialog1');
by angular
Sat Jun 29, 2019 6:38 pm
Forum: Angular
Topic: How to import Metro variable in Angular 8
Replies: 1
Views: 247

How to import Metro variable in Angular 8

Hello, how to import Metro to use Metro.Notify and Metro.dialog in Angular 8?

Open(): void {
Metro.dialog.open('#demoDialog1');
}
It works but the compiler gives an error:
ERROR in src/app/components/pack/pack.component.ts(27,5): error TS2304: Cannot find name 'Metro'.