2018-03-15 01:48:52 +01:00
|
|
|
import { Component } from '@angular/core';
|
|
|
|
import { ElectronService } from 'ngx-electron';
|
|
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-root',
|
|
|
|
templateUrl: './app.component.html',
|
2018-09-08 03:02:16 +02:00
|
|
|
styleUrls: ['./app.component.scss']
|
2018-03-15 01:48:52 +01:00
|
|
|
})
|
|
|
|
export class AppComponent {
|
|
|
|
title = 'app';
|
|
|
|
|
|
|
|
constructor(private _electronService: ElectronService) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
launchWindow(){
|
|
|
|
this._electronService.shell.openExternal('http://google.com');
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|