This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private showDialog<T, R>(component: ComponentType<T>, config: MatDialogConfig): Observable<R> { | |
return new Observable(observer => { | |
this.dialog.open<T, any, R>(component, config).afterClosed().subscribe(value => { | |
if (value) { | |
observer.next(value); | |
} | |
observer.complete(); | |
}); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Y.on('domready', function() { | |
var data = []; | |
var item; | |
var fields = Y.one('form').all('input, textarea, select, checkbox')._nodes; | |
for(var i=0; i<fields.length; i++){ | |
item = {}; | |
if (fields[i].type !== "radio") { | |
if(fields[i].type !== 'hidden') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ComponentFixture, TestBed } from '@angular/core/testing'; | |
import { ElectronService } from 'ngx-electron'; | |
import { AppComponent } from './app.component'; | |
import { FakeElectronService } from './fake-electron.service'; | |
describe('AppComponent', () => { | |
let fixture: ComponentFixture<AppComponent>; | |
let comp: AppComponent; | |
let electronService: FakeElectronService; |