import { Component , EventEmitter , Input , Output } from '@angular/core' ; import { ElectronService } from 'ngx-electron' ; /**
 * API Settings component
 */ @ Component ( { selector : 'app-api' , templateUrl : './api.component.html' , styleUrls : [ './api.component.scss' ] , } ) export class ApiComponent { /** Yandex API key */ @ Input ( ) apiKey : string ; /** Emits on key change */ @ Output ( ) keyChanged : EventEmitter < string > = new EventEmitter ( ) ; param electronService constructor ( private electronService ) { } param url openUrl ( url ) { this . electronService . shell . openExternal ( url ) ; } }