Sengi-Windows-MacOS-Linux/src/app/app.component.ts

22 lines
411 B
TypeScript
Raw Normal View History

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',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'app';
constructor(private _electronService: ElectronService) {
}
launchWindow(){
this._electronService.shell.openExternal('http://google.com');
}
}